Two containers on the default bridge network can't reach each other by container name.
BeginnerTroubleshootingContainers, Kubernetes, IPv6 and packet captures
Answer
Likely causes → The default bridge network has no embedded DNS for container names. Name resolution works only on user-defined networks (and in Compose, which creates one).
Diagnose →
docker network inspect bridge --format '{{range .Containers}}{{.Name}} {{.IPv4Address}}{{"\n"}}{{end}}'
docker exec app getent hosts db
Fix →
docker network create appnet
docker run -d --name db --network appnet postgres:17
docker run -d --name app --network appnet myapp
docker exec app getent hosts db
Prevent → Always use user-defined networks or Compose; never rely on the deprecated --link.
More on Containers, Kubernetes, IPv6 and packet captures
After someone ran `iptables -F` (or restarted firewalld), all Docker containers lost outbound connectivity.Intermediate`docker run -p 8080:80 myapp` starts fine, but `curl localhost:8080` returns `Connection reset by peer`.Beginner`docker run -p 80:80 nginx` fails with `Bind for 0.0.0.0:80 failed: port is already allocated`.BeginnerA new Kubernetes node stays `NotReady` with `container runtime network not ready: NetworkReady=false reason:NetworkPluginNotReady message:Network plugin returns error: cni plugin not initialized`.IntermediateA Service returns `Connection refused` / nothing, and `kubectl get endpoints myapp` shows `<none>`.Beginner`curl` to a pod IP works, but `curl` to the Service's ClusterIP times out.Intermediate