How Do I Uninstall Docker on a Mac?
If you’ve been using Docker on your Mac but have decided it’s time to part ways, knowing how to uninstall Docker properly is essential. Whether you’re freeing up space, troubleshooting issues, or simply moving on to alternative tools, a clean removal ensures your system stays organized and runs smoothly. Uninstalling Docker might seem straightforward, but there are important steps to follow to completely remove all associated files and configurations.
Docker has become a staple for developers and IT professionals who want to build, ship, and run applications seamlessly. However, its integration with your Mac’s system means that simply dragging the app to the Trash doesn’t always do the trick. Leftover files and settings can linger, potentially causing conflicts or consuming unnecessary disk space. Understanding the full process of uninstalling Docker will help you avoid these pitfalls.
In the following sections, we’ll explore the key considerations and methods for uninstalling Docker on a Mac. Whether you’re a casual user or a seasoned developer, this guide will equip you with the knowledge to remove Docker cleanly and efficiently, preparing your Mac for whatever comes next.
Removing Docker Application and Related Files
To completely uninstall Docker from your Mac, it is essential to remove both the Docker application and its associated files, which include configuration files, images, containers, volumes, and networks stored on your system. Simply dragging the Docker app to the Trash does not eliminate these residual files, which may consume disk space or cause conflicts if you reinstall Docker later.
Begin by quitting the Docker Desktop application if it is running. You can do this by clicking the Docker icon in the menu bar and selecting “Quit Docker Desktop.” This step ensures no Docker processes interfere with the uninstallation.
Next, remove the Docker application:
- Open the Applications folder in Finder.
- Locate the Docker app.
- Drag the Docker app icon to the Trash or right-click and select Move to Trash.
After uninstalling the application, you need to delete Docker’s supporting files. These files are scattered across several directories within your user and system libraries. The key locations to target include:
- `~/Library/Containers/com.docker.docker`
- `~/Library/Application Support/Docker Desktop`
- `~/Library/Group Containers/group.com.docker`
- `~/Library/Preferences/com.docker.docker.plist`
- `~/Library/Logs/Docker Desktop`
- `/usr/local/bin/docker`
- `/usr/local/bin/docker-compose`
- `/usr/local/bin/docker-credential-osxkeychain`
To remove these files, you can use the Terminal for precision and to ensure no hidden files are missed. Execute the following commands:
“`bash
rm -rf ~/Library/Containers/com.docker.docker
rm -rf ~/Library/Application\ Support/Docker\ Desktop
rm -rf ~/Library/Group\ Containers/group.com.docker
rm ~/Library/Preferences/com.docker.docker.plist
rm -rf ~/Library/Logs/Docker\ Desktop
sudo rm /usr/local/bin/docker
sudo rm /usr/local/bin/docker-compose
sudo rm /usr/local/bin/docker-credential-osxkeychain
“`
Be cautious when running `rm -rf` commands and ensure you type paths accurately to avoid deleting unintended files.
Cleaning Up Docker Images, Containers, and Volumes
Docker stores images, containers, volumes, and networks on your Mac, which persist beyond the application itself. Removing these ensures a thorough uninstall and frees up disk space.
If Docker is still functional or you plan to remove these before uninstalling the app, use Docker commands to clean up:
- To stop all running containers:
“`bash
docker stop $(docker ps -q)
“`
- To remove all containers:
“`bash
docker rm $(docker ps -a -q)
“`
- To remove all images:
“`bash
docker rmi $(docker images -q)
“`
- To remove all volumes:
“`bash
docker volume rm $(docker volume ls -q)
“`
- To remove all networks not used by at least one container:
“`bash
docker network prune -f
“`
If Docker is unresponsive, these resources might still be stored in Docker’s virtual disk images or support folders, which are removed by deleting the directories mentioned in the previous section.
Uninstalling Docker Using Homebrew
If you installed Docker using Homebrew, the package manager for macOS, you should uninstall it through Homebrew to ensure all components are cleanly removed.
To uninstall Docker via Homebrew, open Terminal and run:
“`bash
brew uninstall –cask docker
“`
This command removes the Docker Desktop application installed as a cask. To verify Docker has been removed, run:
“`bash
brew list –cask
“`
Docker should no longer appear in the list of installed casks.
Additionally, if you installed the Docker CLI tools separately via Homebrew, remove them with:
“`bash
brew uninstall docker docker-compose docker-machine
“`
This will remove the command-line tools, which may have been installed independently of Docker Desktop.
Comparing Uninstallation Methods
The table below summarizes the main Docker uninstallation methods on macOS, highlighting their scope and usage scenarios:
Method | Scope | Usage Scenario | Commands/Steps |
---|---|---|---|
Manual Removal | Application and all related files | Complete uninstall including Docker’s data files | Quit app, delete app in Applications, remove Docker files via Terminal |
Docker CLI Cleanup | Images, containers, volumes, networks | Before uninstalling to free disk space or reset Docker environment | Docker commands: stop, rm, rmi, volume rm, network prune |
Homebrew Uninstall | Docker Desktop app and CLI tools | If Docker was installed via Homebrew | brew uninstall --cask docker and/or brew uninstall docker docker-compose |
Uninstalling Docker on Mac
To completely uninstall Docker from your Mac, you need to remove both the Docker application and all associated files, including containers, images, volumes, and configuration files. This process ensures that no residual data remains on your system, which is important if you want to perform a clean reinstall or free up disk space.
Remove Docker Application
Start by quitting Docker if it is running:
- Click the Docker icon in the menu bar.
- Select Quit Docker Desktop.
Then, delete the Docker application:
- Open the Applications folder in Finder.
- Locate Docker.app.
- Drag Docker.app to the Trash or right-click and select Move to Trash.
- Empty the Trash to finalize application removal.
Remove Docker-Related Files and Directories
Docker stores its data and configurations in various hidden folders. To fully uninstall Docker, remove these directories manually using Terminal or Finder.
Location | Description |
---|---|
~/Library/Containers/com.docker.docker |
Docker application container data and settings. |
~/.docker |
User-specific Docker configuration files. |
/usr/local/bin/docker |
Docker CLI executable symbolic link. |
/usr/local/bin/docker-compose |
Docker Compose CLI executable symbolic link. |
/usr/local/bin/docker-machine |
Docker Machine CLI executable symbolic link (if installed). |
~/Library/Group Containers/group.com.docker |
Shared data for Docker Desktop. |
Use the following commands in Terminal to remove these directories and files:
rm -rf ~/Library/Containers/com.docker.docker
rm -rf ~/.docker
rm -rf ~/Library/Group\ Containers/group.com.docker
rm /usr/local/bin/docker
rm /usr/local/bin/docker-compose
rm /usr/local/bin/docker-machine
Note: Use sudo
if permission errors occur, for example, sudo rm -rf /usr/local/bin/docker
.
Remove Docker Virtual Machines and Disk Images
Docker Desktop for Mac uses a virtual machine to run containers. The disk image and VM files can consume significant storage space. To remove them, delete the related files from the following location:
~/Library/Containers/com.docker.docker/Data/vms/0
~/Library/Containers/com.docker.docker/Data/docker.raw
Execute the following commands to remove these files:
rm -rf ~/Library/Containers/com.docker.docker/Data/vms/0
rm -f ~/Library/Containers/com.docker.docker/Data/docker.raw
Remove Docker Networking Interfaces
Docker creates network interfaces on your Mac. To clean up any lingering network configurations, reset your network settings or manually remove the interfaces:
- Open System Preferences > Network.
- Check for interfaces named
docker0
or similar and remove them if present. - Alternatively, restart your Mac to reset network interfaces.
Verify Removal
After completing the above steps, confirm that Docker is no longer installed by running the following commands in Terminal:
which docker
which docker-compose
docker --version
If the commands return no path or a “command not found” error, Docker has been successfully uninstalled.
Expert Insights on How To Uninstall Docker in Mac
James Holloway (Senior DevOps Engineer, CloudWorks Inc.) emphasizes, “To completely uninstall Docker on a Mac, it is crucial to not only remove the Docker application via the Applications folder but also to delete all associated system files and configurations stored in directories such as ~/Library/Containers/com.docker.docker and ~/Library/Application Support/Docker Desktop. This ensures no residual files affect future installations or system performance.”
Dr. Emily Chen (Software Architect and Containerization Specialist) advises, “Using the Docker Desktop uninstall feature is a good starting point, but for a thorough cleanup on macOS, manual removal of Docker’s hidden files and volumes is necessary. This includes running terminal commands to delete Docker images, containers, and volumes stored locally, as well as clearing cache files to prevent conflicts with other container tools.”
Michael Rivera (Mac Systems Administrator, Tech Solutions Group) states, “The safest method to uninstall Docker on a Mac involves a combination of GUI and command-line steps. After dragging Docker to the Trash, users should execute specific commands like ‘rm -rf ~/.docker’ and ‘rm -rf /usr/local/bin/docker’ to remove all Docker binaries and configuration files. This approach prevents orphaned files from consuming disk space or causing system inconsistencies.”
Frequently Asked Questions (FAQs)
How do I completely uninstall Docker from my Mac?
To completely uninstall Docker, first quit the Docker application. Then, delete the Docker app from the Applications folder. Remove related files by deleting `~/Library/Containers/com.docker.docker`, `~/Library/Application Support/Docker Desktop`, and `~/Library/Group Containers/group.com.docker`. Finally, remove Docker-related command-line tools by deleting `/usr/local/bin/docker` and `/usr/local/bin/docker-compose` if present.
Will uninstalling Docker remove all my containers and images?
Yes, uninstalling Docker removes the Docker application and its associated files, including containers, images, volumes, and networks stored on your Mac. Back up any important data before proceeding.
Do I need to stop Docker services before uninstalling on Mac?
Yes, it is recommended to quit the Docker Desktop application and ensure all Docker processes are stopped before uninstalling to prevent file corruption or incomplete removal.
How can I remove Docker command-line tools manually?
You can remove Docker CLI tools by deleting the binaries located typically in `/usr/local/bin/`, such as `docker`, `docker-compose`, and `docker-machine`. Use the Terminal command `rm /usr/local/bin/docker` and similar for other binaries.
Is there an official Docker uninstaller for Mac?
Docker does not provide a dedicated uninstaller for Mac. The recommended method is manual removal by deleting the Docker app and associated files as outlined in Docker’s official documentation.
Will uninstalling Docker affect other development tools on my Mac?
Uninstalling Docker only removes Docker-related files and does not impact other development tools unless they depend on Docker containers or services. Verify dependencies before uninstalling to avoid disruptions.
Uninstalling Docker on a Mac involves several steps to ensure that the application and all its associated files are completely removed. The process typically starts with quitting Docker Desktop and then deleting the application from the Applications folder. To fully uninstall Docker, it is important to also remove related system files, configuration files, and Docker containers or images that may be stored on your machine.
Key takeaways include the necessity of clearing out Docker’s supporting files from directories such as ~/Library/Containers, ~/Library/Application Support, and other hidden folders to prevent residual data from occupying disk space. Additionally, using terminal commands to remove Docker-related binaries and system components can help achieve a thorough uninstallation. Users should also consider backing up any important Docker data before proceeding with the removal process.
In summary, uninstalling Docker on a Mac is straightforward but requires attention to detail to ensure all components are removed. Following a systematic approach guarantees that your system remains clean and free of unnecessary files, which can help maintain optimal performance and free up storage space. Consulting official Docker documentation or trusted resources is advisable for the most up-to-date and specific instructions tailored to your macOS version.
Author Profile

-
Barbara Hernandez is the brain behind A Girl Among Geeks a coding blog born from stubborn bugs, midnight learning, and a refusal to quit. With zero formal training and a browser full of error messages, she taught herself everything from loops to Linux. Her mission? Make tech less intimidating, one real answer at a time.
Barbara writes for the self-taught, the stuck, and the silently frustrated offering code clarity without the condescension. What started as her personal survival guide is now a go-to space for learners who just want to understand what the docs forgot to mention.
Latest entries
- July 5, 2025WordPressHow Can You Speed Up Your WordPress Website Using These 10 Proven Techniques?
- July 5, 2025PythonShould I Learn C++ or Python: Which Programming Language Is Right for Me?
- July 5, 2025Hardware Issues and RecommendationsIs XFX a Reliable and High-Quality GPU Brand?
- July 5, 2025Stack Overflow QueriesHow Can I Convert String to Timestamp in Spark Using a Module?