Blog › Docker · Published 2026-11-26

Fix Docker error "bind: address already in use"

This error means the host port in -p HOST:CONTAINER is already taken.

Find who uses it

docker ps
ss -ltnp | grep :8080

Fix options

docker run -p 8081:80 nginx

In Compose, edit ports: - "8081:80". The number after the colon is the port inside the container and usually should not change.

Official sources

Need help with your project?
We build websites, systems and automation. Start your project WhatsApp

All articles