beginnerDocker Networking: Bridge, Host, Overlay, DNS & Port Mapping
Why can't containers on the default bridge network resolve each other by name?
The default bridge network (docker0) predates Docker's embedded DNS feature and does not run the embedded DNS server. Only user-defined bridge networks include automatic DNS resolution of container names and Compose service names. This is why best practice is to always create an explicit network rather than relying on the default one.
This is a Pro chapter
Sign in, then upgrade to Pro or Power to unlock this and the full DevOps Mastery library.
Why can't containers on the default bridge network resolve each other by name?