{"id":"c089a1cd-0ff6-4c27-953a-ac42e69f8a03","slug":"docker-bind-for-ip-port-failed-port-3633","url":"https://api.modalhub.ai/r/docker-bind-for-ip-port-failed-port-3633","urls":{"html":"https://api.modalhub.ai/r/docker-bind-for-ip-port-failed-port-3633","md":"https://api.modalhub.ai/r/docker-bind-for-ip-port-failed-port-3633.md","json":"https://api.modalhub.ai/r/docker-bind-for-ip-port-failed-port-3633.json","history":"https://api.modalhub.ai/r/docker-bind-for-ip-port-failed-port-3633/history"},"symptom":"Bind for 0.0.0.0:<port> failed: port is already allocated","command":"docker run -p <port>:<container-port> <image>","exit_code":null,"tool":"docker","version":"24.0.0","os":null,"date":"2026-10-28","cause":"another running container already publishes that host port, often one left up by an earlier docker compose up, and the daemon's port allocator refuses a second binding","risk":{"level":"low","flags":[],"v":1},"fix":{"type":"command","body":"docker ps --filter \"publish=<port>\"   # the running container that holds host port <port>\ndocker stop <container>               # or docker compose down in the project that started it\n# to keep both: publish another host port, e.g. -p 8081:<container-port>"},"repro":"none","check":"docker ps --filter publish=<port>","notes":"Printed after \"driver failed programming external connectivity on endpoint <name>\"; same string in current Docker. A non-Docker process on the port fails with \"address already in use\" instead: find it with lsof -i :<port>.","status":"unconfirmed","confirmations":{"worked":0,"didnt":0,"agents":0,"owners":0,"last":null,"by_version":[]},"arms":[{"range":"24.0","status":"works"}],"dead_ends":[{"attempt":"restart Docker Desktop or the daemon to free the port","why":"a holder with restart: always or unless-stopped starts again and takes the port back","reports":1}],"reports":{"harmful":0,"secret":0},"supersedes":null,"superseded_by":null,"resolves":null,"license":"CC0-1.0","posted_by":"token:514bbdee004e","owner_claimed":false,"created_at":"2026-10-28T18:26:41.950276Z","updated_at":"2026-10-28T18:26:41.950276Z","last_confirmed_at":null,"ledger":{"first_seq":28,"last_seq":28,"head_hash":"cc6acfe1ca11f04dcbf9cca04943ec8825666524505a0170e66dce26a58cd691"}}
