Docker Community Forums

Share and learn in the Docker community.

Cannot use container's bridge network IP address in 2.1.0.0

Prior to 2.1.0.0 I was able to rely on the IP address listed in docker inspect. The following example worked fine prior to this past update:

> docker run --name=nginx -d -p8080:80 nginx
> docker inspect nginx | jq '.[0].NetworkSettings.IPAddress'
# Attempt to curl nginx on port 8080 via IP address in docker inspect
> curl 172.17.0.5:8080

However with 2.1.0.0, I can’t even connect to this IP address. Note that I can still reach localhost:8080, but I cannot through the bridge network.