Home >System Tutorial >MAC >How to Uninstall Docker on Mac? [Completely Remove Library Folder]
Full uninstall Docker and clean the cache to free up Mac space! This article will guide you to safely and effectively remove Docker from your Mac, including three methods: Finder, Terminal and Docker's own uninstall function, and provide cache cleaning skills.
Step 1: Use Docker's own uninstall function
This is the most convenient way to uninstall:
Step 2: Use Finder to uninstall
This is how to quickly uninstall Docker, but it may not be possible to completely clear all related files:
Step 3: Use terminal to uninstall (advanced user)
If you need to delete Docker and all its related files more thoroughly, you can use the terminal command. Please be careful, incorrect commands may lead to data loss. The following commands need to be executed line by line, and press Enter after each line:
sudo rm -rf ~/.docker
sudo rm -rf ~/Library/Containers/com.docker.docker
sudo rm -rf ~/Library/Group Containers/group.com.docker
sudo rm -rf ~/Library/Caches/com.docker.docker
sudo rm -rf /Library/PrivilegedHelperTools/com.docker.vmnetd
sudo rm -rf /Library/LaunchDaemons/com.docker.vmnetd.plist
sudo rm -rf /usr/local/lib/docker
sudo rm -rf ~/Library/Application Support/Docker Desktop
sudo rm -rf ~/Library/Preferences/com.docker.docker.plist
sudo rm -rf ~/Library/Saved Application State/com.electron.docker-frontend.savedState
sudo rm -rf ~/Library/Group Containers/group.com.docker
sudo rm -rf ~/Library/Logs/Docker Desktop
sudo rm -rf ~/Library/Preferences/com.electron.docker-frontend.plist
sudo rm -rf ~/Library/Cookies/com.docker.docker.binarycookies
What is Docker?
Docker is a software package program released in 2013 and is a platform-as-a-service (PaaS) that developers use to quickly build, test, and deploy applications (in container form). The software is hosted by Docker Engine.
Clean Docker cache
After uninstalling Docker, clean the cache to avoid residual unnecessary files:
Safely and thoroughly uninstall Docker
While manually deleting an application is simple, it can leave hidden files, causing confusion in the Mac system. For a thorough cleaning, it is recommended to use MacKeeper's smart uninstaller.
Other Uninstall Guide:
The above is the detailed content of How to Uninstall Docker on Mac? [Completely Remove Library Folder]. For more information, please follow other related articles on the PHP Chinese website!