“Address already in use” error upon docker-compose up

前端 未结 1 472
太阳男子
太阳男子 2021-02-02 08:58

I\'m trying to start up several docker containers using docker-compose up, but I\'m getting the following (partial) error message:

Recreating 1faf02         


        
1条回答
  •  不知归路
    2021-02-02 09:30

    Following https://unix.stackexchange.com/questions/106561/finding-the-pid-of-the-process-using-a-specific-port, instead of netstat I used lsof -i:

    kurt@kurt-ThinkPad:~$ sudo lsof -i :5672 | grep LISTEN
    [sudo] password for kurt: 
    beam.smp 953 rabbitmq   52u  IPv6  33026      0t0  TCP *:amqp (LISTEN)
    

    After running sudo kill 953, I was able to run the docker-compose up.

    0 讨论(0)
提交回复
热议问题