Docker "Address in Use" error fix

    0

    0

    Prince Igwe

    docker-compose down forces the docker-compose service to shut down. The docker-compose ps command will show that all the containers associated with docker-compose are now stopped. The sudo lsof command will show that all the containers associated with the specified port are now stopped, and the sudo kill -9 command will kill the process ID associated with that port.

    docker-compose down
    docker rm -fv $(docker ps -aq)
    sudo lsof -i -P -n | grep <port number>
    sudo kill -9 <process ID>
    Codiga Logo
    Codiga Hub
    • Rulesets
    • Playground
    • Snippets
    • Cookbooks
    soc-2 icon

    We are SOC-2 Compliance Certified

    G2 high performer medal

    Codiga – All rights reserved 2022.