Interview Prep/Docker/Networking, DNS and Compose

Port mapping works on host but not from another machine on the LAN.

IntermediateTroubleshootingNetworking, DNS and Compose
Answer

Likely causes → Bound to 127.0.0.1, cloud security group/firewall blocking, wrong IP.

Diagnose → docker port c; ss -tlnp; curl from another host; nc -zv ip port.

Fix → Publish on 0.0.0.0 (or remove the 127.0.0.1 prefix) and open the firewall.

Prevent → Document intended exposure.

All Docker questions Roadmap: Docker & containers

More on Networking, DNS and Compose