Interview Prep/Docker/Networking, DNS and Compose

Inter-host overlay network: containers on different nodes cannot ping.

AdvancedTroubleshootingNetworking, DNS and Compose
Answer

Likely causes → Firewall blocks 4789/udp (VXLAN), 7946, 2377; MTU too high; clock skew; cloud security groups.

Diagnose →

docker node ls
nc -zvu node2 4789
ss -ulnp | grep 4789
docker network inspect <overlay>

Fix → Open ports between nodes, lower overlay MTU (--opt com.docker.network.driver.mtu=1450), sync time.

Prevent → Provision security groups via IaC.

All Docker questions Roadmap: Docker & containers

More on Networking, DNS and Compose