How to completely uninstall docker from ubuntu

If you need a fresh start and com­pletely unin­stall docker, just run the fol­low­ing com­mands[source].

sudo apt-get purge docker-engine
sudo apt-get autoremove --purge docker-engine
rm -rf /var/lib/docker # This deletes all images, containers, and volumes

Ryan Sukale

Ryan is just a regular guy next door trying to manage his life and finances.

You may also like...

  • Mohhin­der Suresh

    I had installed docker to play around with it, but I don’t use it every­day. With it run­ning in the back­ground my machine has been really slow, so try­ing to speed things back up at the moment. These instruc­tions were very helpful.