Skip to content

Instantly share code, notes, and snippets.

@pwilken
Created September 12, 2019 10:16
Show Gist options
  • Save pwilken/c4691bd0755a12e89303dd3938e4bdcc to your computer and use it in GitHub Desktop.
Save pwilken/c4691bd0755a12e89303dd3938e4bdcc to your computer and use it in GitHub Desktop.
cleanup-docker.sh
dpkg -l | grep -i docker
sudo apt-get purge -y docker-engine docker docker.io docker-ce
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment