Error response from daemon: driver failed programming external connectivity on endpoint

hyun_hyun

Gahyun Son

Posted on November 15, 2024

Error response from daemon: driver failed programming external connectivity on endpoint

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
Enter fullscreen mode Exit fullscreen mode

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
Enter fullscreen mode Exit fullscreen mode

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
Enter fullscreen mode Exit fullscreen mode

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
Enter fullscreen mode Exit fullscreen mode

Now, I'll re-run docker compose up where we want to run.
It works very well.

💖 💪 🙅 🚩
hyun_hyun
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