Expected behavior
From inside a container, I can connect to a port opened on DockerNAT IP.
Actual behavior
I can ping the DockerNAT from inside a container, but I cannot connect to a port.
I can ping AND connect to a port from my host.
Information and steps
-
Docker 1.12.1-beta24 for Windows 10/64bit
-
DockerNAT IP is 10.0.75.1
-
two containers run by docker-compose:
- “mysql” service with obtained ip 172.18.0.3, docker-compose.yml contains:
services:
mysql:
ports:
- “3306:3306” - “xyz” service with obtained ip 172.18.0.4
- “mysql” service with obtained ip 172.18.0.3, docker-compose.yml contains:
My Windows host ip is 10.12.0.38. I can connect to 10.0.75.1:3306 from my Windows host (tested by telnet command). I cannot do the same from within the xyz service container. However I can ping 10.0.75.1 easily from the container.
How can I set it up to be able to connect to the mysql port through the 10.0.75.1? Any ideas why this doesn’t work?
Windows firewall is disabled.