bind: address already in use

PHOTO EMBED

Thu Sep 08 2022 18:14:59 GMT+0000 (Coordinated Universal Time)

Saved by @dlopezjoffre #bash #docker

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 <port number> # List who's using the port
# sudo kill -9 <process id> (macOS)
# sudo kill <process id> (Linux)
content_copyCOPY

https://stackoverflow.com/questions/37971961/docker-error-bind-address-already-in-use