Skip to content

Instantly share code, notes, and snippets.

@smartameer
Last active October 4, 2017 14:24
Show Gist options
  • Save smartameer/6817b472423453c2526a06908370aa19 to your computer and use it in GitHub Desktop.
Save smartameer/6817b472423453c2526a06908370aa19 to your computer and use it in GitHub Desktop.
Uninstall & Clean Docker
sudo docker rm -f $(sudo docker ps -a -q)
sudo docker rmi -f $(sudo docker images -a -q)
sudo docker volume rm $(sudo docker volume ls -f dangling=true -q)
sudo docker network rm -f $(sudo docker network ls | awk '$3 == "bridge" && $2 != "bridge" { print $1 }')
sudo service docker stop
sudo apt-get update
sudo apt-get purge docker-ce -y
sudo rm /usr/local/bin/docker-compose
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment