Interview Prep/Docker/Networking, DNS and Compose

Websocket / long-lived connections drop through the Docker proxy after a while.

AdvancedTroubleshootingNetworking, DNS and Compose
Answer

Likely causes → conntrack/NAT timeouts, idle timeouts at upstream load balancer, missing keepalives.

Diagnose → conntrack -L | grep <port>; sysctl net.netfilter.nf_conntrack_tcp_timeout_established; check LB idle settings.

Fix → Enable TCP/app-level keepalives shorter than the timeout, tune idle timeouts, raise conntrack limits.

Prevent → Application heartbeat.

All Docker questions Roadmap: Docker & containers

More on Networking, DNS and Compose