Skip to content

Instantly share code, notes, and snippets.

@jinnabaalu
Last active January 11, 2017 07:33
Show Gist options
  • Save jinnabaalu/a9124af78730b6baafc1776961d4405d to your computer and use it in GitHub Desktop.
Save jinnabaalu/a9124af78730b6baafc1776961d4405d to your computer and use it in GitHub Desktop.

Docker uninstallation steps

Official docker page https://docs.docker.com/engine/installation/linux/ubuntulinux/#uninstallation

sudo apt-get purge -y docker-engine

sudo apt-get autoremove -y --purge docker-engine

sudo apt-get autoclean

The above commands will not remove images, containers, volumes, or user created configuration files on your host. If you wish to delete all images, containers, and volumes run the following command:

sudo rm -rf /var/lib/docker

Remove docker from apparmor.d:

sudo rm /etc/apparmor.d/docker

Remove docker group:

sudo groupdel docker

Now, You have successfully deleted docker.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment