0

How come on a user defined network (driver:bridge) containers can not only communicate by IP address, but can also resolve a container name to an IP address, and on the default network (also driver:bridge) containers cannot resolve container name to ip?

On user defined network ping container_name will work, meanwhile on default docker bridge only ping 172.17.0.2

2

Because user defined networks contain an embedded DNS server that works differently from the one in the default network.

For details, see the docker documentation on this.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.