Wednesday, 29 November 2023

Docker Error bind: address already in use

 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

and then: kill -9 <process id> (macOS) or sudo kill <process id> (Linux).

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

No comments:

Post a Comment