docker
networking
ai_generated
true
Error starting userland proxy: listen tcp4 0.0.0.0:80: bind: address already in use
ID: docker/bind-address-already-in-use
96%Fix Rate
97%Confidence
50Evidence
2023-01-01First Seen
Version Compatibility
| Version | Status | Introduced | Deprecated | Notes |
|---|---|---|---|---|
| 24 | active | — | — | — |
| 27 | active | — | — | — |
Root Cause
Host port is already occupied by another process or container.
genericWorkarounds
-
96% success Find the process using the port: ss -tlnp | grep :80 or lsof -i :80
Then stop the process or use a different port
-
93% success Change the port mapping in Docker: -p 8080:80 instead of -p 80:80
Map to an available host port while keeping the container port the same
Dead Ends
Common approaches that don't work:
-
Killing random processes on the port
60% fail
May kill a critical service
-
Disabling the host firewall
90% fail
Unrelated to port binding; security risk
Error Chain
Frequently confused with: