Home >System Tutorial >MAC >How to Uninstall Docker on Mac? [Completely Remove Library Folder]

How to Uninstall Docker on Mac? [Completely Remove Library Folder]

Jennifer Aniston
Jennifer AnistonOriginal
2025-03-03 09:38:09363browse

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:

  1. Open the Docker app and click the "Troubleshooting" icon in the upper right corner.
  2. Select "Uninstall" and click Confirm again.

How to Uninstall Docker on Mac? [Completely Remove Library Folder]

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:

  1. Open Finder, find the Docker app, and drag it to the Trash.
  2. Open the wastebasket and click the "Empty wastebasket" button.

How to Uninstall Docker on Mac? [Completely Remove Library Folder]

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:

  1. Open the MacKeeper app and select "Safe Cleanup" in the sidebar.
  2. Click "Start Scan", and after the scan is completed, click the "Clean Junk Files" button. This will delete all cached and junk files on your Mac, including Docker-related files.

How to Uninstall Docker on Mac? [Completely Remove Library Folder] How to Uninstall Docker on Mac? [Completely Remove Library Folder]

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:

  • How to Uninstall Node from Mac
  • How to Uninstall Anaconda from Mac
  • How to uninstall Java from Mac

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!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn