Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Docker for Mac and docker network access from host #171
I can access all containers by ip address from my OSX host directly.
I can't access containers by network unless I map ports to 127.0.0.1.
Diagnostic ID: 13B73004-5CA7-40F3-B597-AA61D1FC6C37
Steps to reproduce the behavior
I understand that the reason for this not working, is that this is due to the documented fact that there is no
Something like suggested in this thread: https://forums.docker.com/t/support-tap-interface-for-direct-container-access-incl-multi-host/17835
referenced this issue
Sep 6, 2016
I believe this is the same issue I'm experiencing. If I start an nginx container that should proxy to some code running on my actual host, I can't do that anymore since upgrading from docker toolbox. I used to be able to proxy requests to 10.0.2.2 or whatever IP my host was given, but now the host has no IP (other than my DHCP given IP) for a reliable proxy destination. Very much a blocker for us, unless I'm missing something.
Per some looking around, moby/moby#22753 helped somewhat. I just added an alias on my host, and that seemingly has gotten me around the problem.
I am pasting this for anyone who comes here and feels at a loss
More details can be found here: