Docker bind: address already in use

Docker · Docker Engine

Docker reports bind: address already in use when a container port mapping conflicts with another process or container already listening on that host port.

Check your exact device first. Codes and procedures vary by model and software version. Back up important files before recovery. Stop if a device is overheating, smells burnt, or has a swollen battery.

CHOOSE HOW YOU WORK

Clear help. Useful detail.

Start with the checks below. Tick a step after you try it, and keep a note of what changed. You can stop as soon as the original task works.

What can cause it?

  • Host port already in use
  • Duplicate docker compose service
  • Old container still running
  • System service occupying port

What to try

Work through one step at a time
Your troubleshooting progress0 steps tried
  1. Find Port Owner

    Run sudo ss -ltnp | grep :PORT to identify the process using the host port.

  2. Check Containers

    Run docker ps and look for another container already publishing the same host port.

  3. Change Port Mapping

    Use a different host port, for example -p 8081:80 instead of -p 8080:80.

  4. Stop Conflict Safely

    Stop the old service or container only after confirming it is not needed.

How did it go?

Test the original task again. A completed checklist doesn’t by itself mean the problem is fixed.

If the error comes back

Record the full error, your exact model, software version, and the steps you tried. Share these with the manufacturer or a qualified technician. A repeated code needs a diagnosis, especially if it involves storage, heat, or power.

Find the instructions for your model

Docker official support

This is a general support link. This reference guide has not been checked against a model-specific source in this update.