How to completely uninstall docker from ubuntu
If you need a fresh start and completely uninstall docker, just run the following commands[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