DEV Community

Cover image for Access boot2docker container IP
Adam K Dean
Adam K Dean

Posted on

Access boot2docker container IP

When you run boot2docker, all your containers will be running on that VM, not on your local machine. Therefore, you won't be able to access them via their container IPs by default.

To access them, ensure that boot2docker is running, and run:

$ sudo route -n add 172.17.0.0/16 `boot2docker ip`
Enter fullscreen mode Exit fullscreen mode

This tells your machine to direct all traffic on the docker IP subnet to the IP address that your boot2docker is running on.

Top comments (0)