0
0
PIPrince 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>