Reputation: 1682
I would like to remove the Docker toolbox completely from my Mac. I tried to remove Docker from the /Applications
folder, but it didn't work out.
Upvotes: 145
Views: 222715
Reputation: 5046
Even if you didn't install Docker for Desktop with Homebrew, it's a good mechanism for cleaning up the various files.
brew uninstall --force --cask docker
Upvotes: 4
Reputation: 4027
The Quickest and Best solution that worked for me:
Deleted the docker app from the Application folder and then deleted all folders by searching for "docker"
Then run the script
curl -L -O https://github.com/docker/toolbox/raw/master/osx/uninstall.sh; sudo bash uninstall.sh
Upvotes: -2
Reputation: 2233
As of 2023 Aug, easiest solution for Macbook M1
/Applications/Docker.app/Contents/MacOS/uninstall
still this will show in apps, open finder navigate to Application and drag it to trash source https://docs.docker.com/desktop/uninstall/
Upvotes: 1
Reputation: 395
only this guide helped in my case! Hope this helps. enter link description here
in brief:
remove docker from /application
remove 'com.docker.xxxxx from ~Library/application script , /cache , /container
/Library/PrivilegedHelperTools/com.docker.vmnetd
/Library/LaunchDaemons/com.docker.vmnetd.plist
/usr/local/lib/docker
~/.docker
~/Library/Application Support/Docker Desktop
~/Library/Preferences/com.docker.docker.plist
~/Library/Saved Application State/com.electron.docker-frontend.savedState
~/Library/Group Containers/group.com.docker
~/Library/Logs/Docker Desktop
~/Library/Preferences/com.electron.docker-frontend.plist
~/Library/Cookies/com.docker.docker.binarycookies
Upvotes: 0
Reputation: 20912
On my Mac M1, I could start the Docker app, but it was hanging on starting. So, this is the only thing that worked for me after deleting the Docker app (with some restarts in there):
rm -rf ~/Library/Group\ Containers/group.com.docker
rm -rf ~/Library/Containers/com.docker.docker
rm -rf ~/.docker
Then, you should be able to reinstall the Docker dmg
install file.
Upvotes: 49
Reputation: 1020
It seems all the answers are dated. As of 2022, there's a section of the docs dedicated to this: https://docs.docker.com/desktop/mac/install/#uninstall-docker-desktop
Quoting:
To uninstall Docker Desktop from your Mac:
- From the Docker menu, select Troubleshoot and then select Uninstall.
- Click Uninstall to confirm your selection.
Upvotes: 6
Reputation: 5290
Remove all Docker Machine VMs:
docker-machine rm -f $(docker-machine ls -q);
Remove the application:
rm -rf /Applications/Docker.app
Remove local config:
rm -rf ~/.docker
Remove docker binaries:
rm -f /usr/local/bin/docker
rm -f /usr/local/bin/docker-machine
rm -r /usr/local/bin/docker-machine-driver*
rm -f /usr/local/bin/docker-compose
Remove boot2docker.iso
:
rm -rf /usr/local/share/boot2docker
Forget packages:
pkgutil --forget io.docker.pkg.docker
pkgutil --forget io.docker.pkg.dockercompose
pkgutil --forget io.docker.pkg.dockermachine
pkgutil --forget io.boot2dockeriso.pkg.boot2dockeriso
Upvotes: 66
Reputation: 2535
Start Docker. Go to the Docker Preferences from its menu bar icon. Within there is a 'Power Button' icon labeled "Reset". Click on that and then click the "Uninstall" button.
Upvotes: 125
Reputation: 860
I realize this question is old enough that it refers to Docker Toolbox instead of Docker Desktop. My response is in regards to Docker Desktop, the latest as of this answer.
You have two ways: Command Line or GUI.
Via command line you execute the following command:
$ /Applications/Docker.app/Contents/MacOS/Docker --uninstall
The command line should bring up something like this:
Docker is running, exiting... Docker uninstalled successfully. You can move the Docker application to the trash.
Upvotes: 40
Reputation: 4533
To uninstall Docker Toolbox from Mac, first simply download the following Docker Toolbox Uninstall Shell Script to your local machine.
Use the Terminal application on your Mac (i.e. Press CMD+Space to open Spotlight Search and enter keyword "Terminal") to change into the directory it was downloaded into (i.e. cd ~/Downloads
), and then execute the file with sudo bash uninstall.sh
.
Upvotes: 72
Reputation: 1784
There is an official uninstall script:
https://github.com/boot2docker/osx-installer/blob/master/uninstall.sh
I used it successfully by entering the commands one at a time in the command line.
Upvotes: 5
Reputation: 16666
This article from 2014 lists all directories and binaries in detail that you need to remove to delete the installation completely:
https://therealmarv.com/how-to-fully-uninstall-the-offical-docker-os-x-installation/
Includes boot2docker.
Of course, you probably find a lot by just typing "docker" into the finder search box. The applications themselves can be removed by deleting the /Applications/Docker
folder.
See: https://www.virtualbox.org/manual/ch02.html#idm871
Upvotes: 12