`docker run -p 80:80 nginx` fails with `Bind for 0.0.0.0:80 failed: port is already allocated`.
BeginnerTroubleshootingContainers, Kubernetes, IPv6 and packet captures
Answer
Likely causes → Another container already publishes host port 80, or a host process (nginx, Apache) listens on it.
Diagnose →
docker ps --format '{{.Names}}\t{{.Ports}}' | grep ':80->'
sudo ss -ltnp 'sport = :80'
Fix → Stop the conflicting container/service, or publish a different host port (-p 8081:80). If no container shows it but the error persists, a stale docker-proxy may hold it; restarting Docker clears that.
Prevent → Put a single reverse proxy on 80/443 and keep app containers on unpublished ports in a shared network.
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`.BeginnerTwo containers on the default bridge network can't reach each other by container name.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