Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save mwin007/149fc417a5f6cfbadb4d475107f981d6 to your computer and use it in GitHub Desktop.
Save mwin007/149fc417a5f6cfbadb4d475107f981d6 to your computer and use it in GitHub Desktop.
docker stop $(docker ps -a -q); docker rm $(docker ps -a -q); docker volume rm $(docker volume ls -qf dangling=true)
docker network rm $(docker network ls -q)
sudo lsof -nP | grep LISTEN
sudo kill -9 1548
# Where on the last line, 1548 was a service that was using port 80 as returned by the penultimate line.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment