vagrant - How to access different boot2docker instance in a virtual box -


i created 2 boot2docker instances in virtual box:

"boot2docker-vm" {8674bb87-b7ba-4179-9a09-c779611b1d9a}

"boot2docker-work" {53ffd6d6-2fc4-4c4f-b34e-c2f8dd87dd40}

they use different boot2docker.iso , different profiles.

the first vm default, if run 'docker images' outside virtual machine, use first 1 default.

but how can access second boot2docker "boot2docker-work", know 'boot2docker ssh' works, want run docker command outside virtual machine.

i tried set docker_host , ca, cert second vm, has following errors: an error occurred trying connect: https://192.168.59.110:2376/v1.19/containers/json: dial tcp 192.168.59.110:2376: i/o timeout

any ideas?

ok,i find solution.

when create vm, connect vboxnet ip, if ip 192.168.59.103, add 192.168.59 routing table

192.168.58 link#10 uc 3 0 vboxnet

then if start vm, 192.168.58.103 added routing table right gateway:

192.168.58.103 8:0:27:1e:d1:24 uhlwi 0 3120 vboxnet 210

but if create vm ip 192.168.58.104, not have right gateway:

192.168.58.104 link#10 uc 3 0 vboxnet

this makes vm not working.

so solution that, use 192.168.59, or 192.168.60, problems gone.

but can explain routing mechanism of this?


Comments

Popular posts from this blog

How to provide Authorization & Authentication using Asp.net, C#? -

toolbar - How to add link to user registration inside toobar in admin joomla 3 custom component -

android - Pass an Serializable object in AIDL -