Skip to content

Instantly share code, notes, and snippets.

@marrobHD
Last active June 29, 2020 14:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save marrobHD/128de1a5afa1b68802af52ccda8ebbf1 to your computer and use it in GitHub Desktop.
Save marrobHD/128de1a5afa1b68802af52ccda8ebbf1 to your computer and use it in GitHub Desktop.
Fully removes docker and docker-compose
# !WARNING!
# Script moved to https://blob.CLITools.tk/uninstall-docker(https://github.com/marrobHD/clitools/blob/master/uninstall-docker)
# This script is no longer updated on GitHub Gist.
# !WARNING!
# Remove docker compose
sudo rm $(which docker-compose)
sudo pip uninstall docker-compose
# Remove docker
sudo apt-get purge -y docker-engine docker docker.io docker-ce docker-ce-cli && sudo apt-get autoremove -y --purge docker-engine docker docker.io docker-ce
sudo rm -rf /var/lib/docker /etc/docker
sudo rm /etc/apparmor.d/docker
sudo groupdel docker
sudo rm -rf /var/run/docker.sock
sudo rm /usr/local/bin/docker-cleanup
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment