This guide walks you through completely removing Docker Desktop from your Mac, including the app, its data, and command-line tools. You’ll need admin access and, if you use containers, a quick way to back up any important volumes or images before you start.
What You’ll Need
- Administrator (admin) user account on your Mac
- If you have containers or images you want to keep, a backup destination (external drive, cloud storage, or a registry like Docker Hub)
- About 10–15 minutes of time
Step-by-Step
- Quit Docker Desktop. Click the Docker icon in the menu bar (top-right, near the clock) and select Quit Docker Desktop. If it doesn’t quit, right-click the icon and choose Quit.
- Back up your data (optional but recommended). If you have any Docker volumes or images you might need later, export them first. For images:
docker save -o myimage.tar myimage:tag. For volumes: use a tool likedocker run --rm -v myvolume:/data -v $(pwd):/backup alpine tar czf /backup/myvolume.tar.gz -C /data .. If you don’t need anything, skip this step. - Open the Docker Desktop uninstaller. In Finder, go to Applications and locate Docker.app. Right-click it and select Move to Trash. (On newer versions of Docker Desktop, the app itself contains an uninstall script, but moving to Trash works for most installs.)
- Remove Docker’s background and helper files. Open Terminal (in Utilities inside Applications) and run the following commands one by one. These remove the Docker CLI, the VM data, and preference files. You can copy-paste each line.
rm -rf ~/Library/Containers/com.docker.dockerrm -rf ~/Library/Application\ Support/Docker Desktoprm -rf ~/Library/Group\ Containers/group.com.dockerrm -rf ~/Library/Caches/com.docker.dockerrm -rf ~/Library/Preferences/com.docker.docker.plistrm -rf ~/Library/Logs/Docker Desktoprm -rf ~/.docker
These paths are standard for Docker Desktop on macOS. If you see “No such file or directory”, that’s fine—it means nothing was there. - Remove the Docker command-line tools. If you installed them via Homebrew, run
brew uninstall docker docker-compose docker-machine(or just the ones you have). If you installed them manually, they’re usually in/usr/local/bin—delete the files nameddocker,docker-compose, anddocker-machinewithrm /usr/local/bin/docker(repeat for each). - Empty the Trash. Right-click the Trash icon in the Dock and select Empty Trash. This permanently deletes the app.
- Restart your Mac. A restart ensures any background processes are fully stopped. After restarting, check that Docker is gone by typing
docker --versionin Terminal—you should see “command not found”.
Common Mistakes
- Forgetting to quit Docker Desktop first. If the app is still running, some files are locked and won’t delete properly. Always quit from the menu bar icon.
- Only moving the app to Trash. That leaves the Docker VM and CLI behind, which can cause conflicts if you reinstall later. You must remove the library folders too.
- Deleting ~/.docker without checking. That folder contains your login credentials for registries. If you plan to reinstall, you’ll have to re-login. That’s fine, but it surprises some people.
- Using sudo unnecessarily. Most of these files are in your home directory, so you don’t need sudo. Using sudo on the wrong path could delete system files—stick to the exact commands above.
Tips
- If you’re uninstalling because of a corrupted installation, try restarting your Mac before going through the whole process—sometimes a simple reboot fixes the issue.
- Take a screenshot of your running containers (
docker ps) before uninstalling if you think you might need to recreate them later. - If you use Docker for development, consider switching to Podman or colima as a lighter alternative—they don’t require Docker Desktop’s license.
- After uninstalling, check that your
~/.zshrcor~/.bash_profiledoesn’t have any Docker-related aliases or PATH entries that might cause confusion later.
Troubleshooting
“Docker Desktop is still running” when you try to quit. Force-quit it: go to Apple menu > Force Quit (or press Command+Option+Escape), select Docker, and click Force Quit.
Files won’t delete because they’re “in use”. This usually means a Docker process is still active. Check Activity Monitor for processes named docker, com.docker, or vpnkit. Select them and click the X to quit. Then try the deletion again.
You get “Permission denied” errors. Make sure you’re running the commands in Terminal without sudo, and that you’re logged in as an admin user. If a specific file is stubborn, try chmod 777 ~/Library/Containers/com.docker.docker then delete again—but only as a last resort.
Docker command still works after uninstall. That means the CLI is still installed somewhere. Run which docker to see its location. If it’s in /usr/local/bin, delete it manually. If it’s in a Homebrew directory, run brew uninstall docker.
You see “Cannot connect to the Docker daemon” after reinstalling. This usually means the old VM data is still present. Repeat the removal steps, especially ~/Library/Containers/com.docker.docker and ~/.docker, then reinstall.
Frequently Asked Questions
Q: Will uninstalling Docker Desktop delete my images and containers?
A: Yes, unless you back them up first. The uninstaller removes the Docker VM that stores all images, containers, and volumes. Use docker save to export images before uninstalling.
Q: Do I need to uninstall Docker CLI separately?
A: Yes. Docker Desktop includes its own CLI, but if you installed the CLI via Homebrew or manually, it stays behind. Remove it with brew uninstall docker or delete the binary.
Q: Can I just delete the Docker.app from Applications?
A: That removes the GUI but leaves the VM, CLI, and configuration files. It’s not a full uninstall and can cause issues if you reinstall. Follow the full steps above.
Q: Does uninstalling Docker Desktop affect my other apps?
A: No, it only removes Docker-related files. Your other apps are unaffected. However, any app that depends on Docker (like a local development environment) will stop working until you reinstall Docker or use an alternative.
Q: How long does the uninstall take?
A: The actual deletion takes a few minutes. The backup step can take longer if you have many images. Plan for 10–20 minutes total.
Q: Can I reinstall Docker Desktop after uninstalling?
A: Yes. Download the latest version from the official Docker website and install it. You’ll need to re-login to Docker Hub and recreate your containers from backups.
Related
Method: the standard formula for this calculation, rounded as each result states. See how the calculators work or report an error.
More cards in this drawer
- O2 PUK Code and PIN Code Explained
- Optimize WordPress Themes for Mobile Performance
- Can AI Assistants Access Your Carrier Account?5.00 min/km
- How to Host a Space Engineers Server
- Schedule Ride in Advance Uber: How It Works
- Best LinkedIn Privacy Settings for Job Seekers