Uninstall steps for boot2docker / Docker
Disclaimer: This is all a direct COPY & PASTE from: http://therealmarv.com/blog/how-to-fully-uninstall-the-offical-docker-os-x-installation/ . I am only keeping here for future use in case that site goes down. This is too useful.
Be sure you’ve only used the official installer. This uninstall guide is not the right one if you have installed Docker with e.g. Homebrew or other methods.
First stop boot2docker and delete the VBox image:
boot2docker stop
boot2docker delete
Remove the environmental variable DOCKER_HOST in case you have fixed it somewhere like e.g. in .bash_profile
Drag and Drop the boot2docker app logo from applications into the trash can of OS X.
Remove Docker and boot2docker command line tools:
sudo rm /usr/local/bin/docker
sudo rm /usr/local/bin/boot2docker
Remove boot2docker VBox image:
sudo rm /usr/local/share/boot2docker/boot2docker.iso
sudo rmdir /usr/local/share/boot2docker
rm -rf ~/.boot2docker
Remove boot2docker ssh keys:
rm ~/.ssh/id_boot2docker*
Remove additional boot2docker files in /private folder:
sudo rm -f /private/var/db/receipts/io.boot2docker.*
sudo rm -f /private/var/db/receipts/io.boot2dockeriso.*