I use Docker on Mac OSX.
After running a container, I check IP address.
docker inspect container-name | grep IP
"LinkLocalIPv6Address": "",
"LinkLocalIPv6PrefixLen": 0,
"SecondaryIPAddresses": null,
"SecondaryIPv6Addresses": null,
"GlobalIPv6Address": "",
"GlobalIPv6PrefixLen": 0,
"IPAddress": "172.17.0.5",
"IPPrefixLen": 16,
"IPv6Gateway": "",
"IPAddress": "172.17.0.5",
"IPPrefixLen": 16,
"IPv6Gateway": "",
"GlobalIPv6Address": "",
"GlobalIPv6PrefixLen": 0,
Now when I go to 172.17.0.5, there is no response.
Then check IP address in another way.
docker-machine ip default
192.168.99.102
192.168.99.102 works.
Now my question is why it outputs different IP address and the first one doesn't work.