Skip to content
Home » How to uninstall Docker from Ubuntu

How to uninstall Docker from Ubuntu

Let’s start the discussion about How to uninstall Docker from Ubuntu in following methods.

Uninstall Docker from Ubuntu

To completely uninstall Docker:

dpkg -l | grep -i docker

To identify what installed package you have:

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  

The commands above will not remove any images, containers, volumes, or user-created configuration files from your host. Run the following commands to delete all pictures, containers, and volumes:

sudo rm -rf /var/lib/docker /etc/docker
sudo rm /etc/apparmor.d/docker
sudo groupdel docker
sudo rm -rf /var/run/docker.sock

You have removed Docker from the system completely.

I hope the strategies listed above work for you. Happy coding and come back again.

Similar Post : How to remove docker ubuntu