Error response from daemon: driver failed programming external connectivity on endpoint
Gahyun Son
Posted on November 15, 2024
I just tried to open the page with docker compose up
,
And I got an error message.
Error response from daemon: driver failed programming external connectivity on endpoint hyunphoto-fbv-app-1 (docker container ID): Bind for 0.0.0.0:8000 failed: port is already allocated
I ran another project on docker & AWS EC2, and 'already' word is led me check docker container list.
apple@GH-MacBook-Pro recipe-app-api % docker ps -a
[+] Running 1/0
! Network recipe-app-api_default Resource is still in use 0.0s
apple@GH-MacBook-Pro recipe-app-api % docker network ls
and I saw one thing is suspicious.
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
container_id recipe-app-api-proxy "/docker-entrypoint.…" 29 hours
If STATUS is 29 hours ago, it means the container doesn't work. but 29 hours means still works.
Let's stop it.
docker stop container_id
Now, I'll re-run docker compose up
where we want to run.
It works very well.
💖 💪 🙅 🚩
Gahyun Son
Posted on November 15, 2024
Join Our Newsletter. No Spam, Only the good stuff.
Sign up to receive the latest update from our blog.
Related
docker Error response from daemon: driver failed programming external connectivity on endpoint
November 15, 2024