Docker Error bind: address already in use

2020-02-16 08:44发布

When I run docker-compose up in my Docker project it failes with the following message:

Error starting userland proxy: listen tcp 0.0.0.0:3000: bind: address already in use

netstat -pna | grep 3000 shows this:

tcp        0      0 0.0.0.0:3000            0.0.0.0:*               LISTEN      -  

I've already tried docker-compose down, but it doesn't help.

12条回答
一纸荒年 Trace。
2楼-- · 2020-02-16 08:54

For Linux/Unix:

Simple search for linux utility using following command

netstat -nlp | grep 8888

It'll show processing running at this port, then kill that process using PID (look for a PID in row) of that process.

kill PID
查看更多
相关推荐>>
3楼-- · 2020-02-16 09:03
`$` sudo service redis-server stop

Does the trick.

查看更多
虎瘦雄心在
4楼-- · 2020-02-16 09:04

I resolve the issue by restarting Docker.

查看更多
smile是对你的礼貌
5楼-- · 2020-02-16 09:05

I had same problem,
docker-compose down --rmi all (in the same directory where you run docker-compose up)
helps

查看更多
相关推荐>>
6楼-- · 2020-02-16 09:10

I ran into the same issue several times. Restarting docker seems to do the trick

查看更多
看我几分像从前
7楼-- · 2020-02-16 09:11

I upgraded my docker this afternoon and ran into the same problem. I tried restarting docker but no luck.

Finally, I had to restart my computer and it worked. Definitely a bug.

查看更多
登录 后发表回答