Skip to content

Instantly share code, notes, and snippets.

@efrecon
Last active September 15, 2017 19:58
Show Gist options
  • Save efrecon/158172d7c0b53c33369c411e0c6c3831 to your computer and use it in GitHub Desktop.
Save efrecon/158172d7c0b53c33369c411e0c6c3831 to your computer and use it in GitHub Desktop.
Entirely clean away docker from a Ubuntu system
sudo apt-get purge -y docker-ce
sudo apt-get autoremove -y --purge docker-ce
sudo apt-get autoclean
sudo rm -rf /var/lib/docker
sudo find /var -name '*docker*' -print -exec rm -rf \{\} \;
sudo find /etc -name '*docker*' -print -exec rm -rf \{\} \;
sudo find /run -name '*docker*' -print -exec rm -rf \{\} \;
echo "Done!"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment