Interview Prep/Docker/Networking, DNS and Compose

`ping` works to IPs but DNS names fail on the default bridge: `ping: bad address 'db'`

BeginnerTroubleshootingNetworking, DNS and Compose
Answer

Likely causes → Default bridge has no name-based discovery.

Diagnose → docker network inspect bridge.

Fix → Use a user-defined network or Compose.

Prevent → Never rely on the default bridge.

All Docker questions Roadmap: Docker & containers

More on Networking, DNS and Compose