Practice makes perfect. Some readers may find going through this tutorial from the beginning helpful in solidifying their understanding of Docker. The following steps will restore a Mac OS X host to the state before the completion of this tutorial. We run through them regularly, so we may repeat the quick start guide ourselves as we make revisions and updates.
Turn off the Boot2Docker virtual machine.
# Check the Boot2Docker virtual machine's status. Host% boot2docker status running # Stop the running Boot2Docker virtual machine. Host% boot2docker stop # Make sure the Boot2Docker virtual machine is off. Host% boot2docker status poweroff
Remove the Boot2Docker virtual machine.
Delete all files.
Drag the VirtualBox executable and the Boot2Docker installer from the
Delete both the
~/.boot2dockerdirectory and the
If you have created
hartl_developmentas part of going through Linking a Dockerized Application to a Database on the Mac OS X Host, make sure to drop the databases and the superuser role
# DOCKERDB_ENV_POSTGRESQL_DB=hartl_development # DOCKERDB_ENV_POSTGRESQL_USER=docker # DOCKERDB_ENV_POSTGRESQL_PASS=docker # DOCKERDB_PORT_5432_TCP_ADDR=127.0.0.1 # DOCKERDB_PORT_5432_TCP_PORT=15432 Host% bundle exec rake db:drop:all Host% dropuser docker
If you have added the alias
dlcat the end of Running Boot2Docker on Mac OS X, please remove both entries from your
Host% more ~/.profile ... # Remove the following entries alias dlc='docker ps -l -q'