How to connect from container to host machine

How can i connect from container to host machine? Before i used from container and it works. I tried to use and it didn’t work. Also i don’t see docker0 interface on host machine.


OS X: version 10.11.4 (build: 15E65) version v1.11.1-beta12
Running diagnostic tests:
[OK] Moby booted
[OK] driver.amd64-linux
[OK] vmnetd
[OK] osxfs
[OK] db
[OK] slirp
[OK] menubar
[OK] environment
[OK] Docker
[OK] VT-x
Docker logs are being collected into /tmp/20160519-120819.tar.gz
Most specific failure is: No error was detected
Your unique id is: F584B968-72A7-4EE2-95B3-5E18C976EEDF
Please quote this in all correspondence.


I would really like an answer to this too.

In the days of docker-machine we used to refer to the host (mac) but this no longer seems to work.

How can my containers refer to the host mac?

1 Like

Previously, I was forwarding my X Display down to the containers on OSX like jfrazelle was doing.

However, with 1.12, it seems the Host machine is not directly available to the Docker containers as my bridge0 device does not default have an IP.

Currently, I’m allowing access via xhost, and setting the container’s DISPLAY variable to my outward-facing (not my inward-to-docker-facing) IP address.

I would rather only have my xhost listening on bridge0, not eth0.