Search code examples
macosdockerboot2docker

docker0 interface missing on osx


On OSX I followed the installation instructions of boot2docker and am able to build and run Debian containers. However, the documentation states that the host (osx) should have a docker0 interface, binding the container with the host.
However:
$ ifconfig docker0 ifconfig: interface docker0 does not exist

How do I create the docker0 interface on osx?
My goal is to communicate with an open db port on the host machine.


Solution

  • You should use boot2docker ssh to login your virtual machine first. Boot2docker install virtualbox in your osx and boot a debian distribution on it. And your docker is installed in your virtual machine.