Docker Error bind: address already in use

后端 未结 20 1452
情深已故
情深已故 2020-11-28 03:28

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:          


        
20条回答
  •  情话喂你
    2020-11-28 03:59

    This helped me:

    docker-compose down  # Stop container on current dir if there is a docker-compose.yml
    docker rm -fv $(docker ps -aq)  # Remove all containers
    sudo lsof -i -P -n | grep   # List who's using the port
    

    and then: kill -9 (macOS) or sudo kill (Linux).

    Source: comment by user Rub21.

提交回复
热议问题