When using Docker for Mac with NAT networking and running
docker-compose up using a v2 formatted docker-compose file with multiple networks defined, containers with port exposures should be available at
Multiple networks defined and attached to services causes requests to
docker.local:<PORT> to timeout / fail. Defining multiple networks doesn’t cause the issue but attaching services to more than one network does.
If you use a single network, requests to docker.local: succeed. I’ve been able to reproduce this issue consistently. See below.
Note: running as a standard OSX User (no sudo).
$ pinata diagnose -u
OS X: version 10.11.4 (build: 15E65)
Docker.app: version v1.10.3-beta5
Running diagnostic tests:
[OK] Moby booted
Error exec: cat /var/log/system.log | grep docker -i > “/tmp/20160401-113257/docker-system.log”: exit 1
Steps to reproduce the behavior
git clone https://github.com/docker/docker-birthday-3
- Try hitting
docker.local:5001in a browser.
If you comment out
front-tier network and only use
back-tier network for all services / components, requests will be routed correctly.