Skip to content

Instantly share code, notes, and snippets.

@gsaslis
Created April 29, 2015 06:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gsaslis/23f1f8e0bb87789643dd to your computer and use it in GitHub Desktop.
Save gsaslis/23f1f8e0bb87789643dd to your computer and use it in GitHub Desktop.
Uninstall boot2docker

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.*
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment