Docker Community Forums

Share and learn in the Docker community.

How to let boot2docker to talk to coreos (in vagrant)

(Bill Wang) #1

Hi experts,

I have coreos in vagrant (with IP address installed on my macbook, then I install boot2docker as well with ip

I start a web service container in coreos, and I can access via from my macbook directly.

Now if I ssh to boot2docker (boot2docker ssh), and try to connect to that port, I got error : No route to host

docker@boot2docker:~$ telnet 8080
telnet: can't connect to remote host ( No route to host

What can I do to make it work?

(Jeanepaul) #2

edit: my bad, sorry, from host.
$ telnet $(boot2docker ip) 8080

(Jeanepaul) #3

it should work though, whats your container?

docker@boot2docker:~$ docker ps -a
CONTAINER ID        IMAGE               COMMAND                CREATED             STATUS              PORTS               NAMES
540f9003290d        redis               "/ redi"   58 seconds ago      Up 58 seconds       6379/tcp            some-redis
docker@boot2docker:~$ docker inspect 54 | grep IP
        "GlobalIPv6Address": "",
        "GlobalIPv6PrefixLen": 0,
        "IPAddress": "",
        "IPPrefixLen": 16,
        "IPv6Gateway": "",
        "LinkLocalIPv6Address": "",
        "LinkLocalIPv6PrefixLen": 0,
        "SecondaryIPAddresses": null,
        "SecondaryIPv6Addresses": null

docker@boot2docker:~$ telnet 6379
# Server
os:Linux 4.0.7-boot2docker x86_64

(Bill Wang) #4

I can confirm, from coreos ( I can connect to boot2docker’s port.

But I can’t connect boot2docker to coreos, not sure if it related firewall setup in coreos.

(Jeanepaul) #5


could you share some more info? docker ps -a or something? else, have you tried using telnet 8080 instead?

(Bill Wang) #6

yes, i test with telnet.