How to Completely Uninstall Docker from Mac

Uninstalling Docker from a Mac involves removing the application itself and all associated files. Here are three effective methods to ensure a thorough cleanup:

Method 1: Use Docker’s Built-in Uninstaller

Recommended for simplicity:

Open…


This content originally appeared on DEV Community and was authored by chatgptnexus

Uninstalling Docker from a Mac involves removing the application itself and all associated files. Here are three effective methods to ensure a thorough cleanup:

Method 1: Use Docker's Built-in Uninstaller

Recommended for simplicity:

  1. Open Docker Desktop: Click the 🐳 icon in the menu bar, navigate to Troubleshoot → Uninstall.
    • Confirm the Uninstall by clicking Uninstall.

Alternatively, you can use the terminal:

   /Applications/Docker.app/Contents/MacOS/uninstall
  • If you get a Permission denied error, prepend sudo and enter your password.

Method 2: Manual Removal

For those who prefer a hands-on approach:

Step 1: Stop Docker Processes

  • Quit Docker Desktop.
  • Open Activity Monitor and force-quit any Docker-related processes (Docker, com.docker, com.electron.docker-frontend).

Step 2: Delete Docker Application

  • Drag Docker.app from /Applications to Trash.

Step 3: Remove Residual Files

  • Use the following Terminal commands to clean up Docker's residual files:
sudo rm -rf /usr/local/bin/docker* \
  ~/.docker \
  ~/Library/Containers/com.docker.docker \
  ~/Library/Group\ Containers/group.com.docker \
  ~/Library/Application\ Support/Docker\ Desktop \
  /usr/local/lib/docker \
  ~/Library/Caches/Docker\ Desktop \
  ~/Library/Preferences/com.docker.docker.plist \
  ~/Library/Saved\ Application\ State/com.electron.docker-frontend.savedState

Step 4: Clear Docker Data (Optional)

  • Permanently remove containers, images, and volumes:
docker rm -f $(docker ps -aq)  # Containers
docker rmi -f $(docker images -q)  # Images
docker volume rm $(docker volume ls -q)  # Volumes

Note: This will delete all your Docker data irreversibly.

Method 3: Third-Party Uninstallers

For users who want an automated solution:

  • Use tools like AppCleaner or BuhoCleaner:
    1. Download and launch the uninstaller.
    2. Select Docker for removal.
    3. Empty Trash to complete the uninstallation.

Post-Uninstallation Steps

  • Restart your Mac to ensure all changes are applied.
  • If some files remain, consider granting Full Disk Access to Terminal in System Settings → Privacy & Security.

Troubleshooting

  • Permission Issues: Use sudo with commands or adjust permissions.
  • Unresponsive Docker: Use Activity Monitor to force-quit Docker processes.

By following these steps, you'll remove Docker completely from your Mac, leaving no trace behind. If you decide to reinstall, head over to Docker’s official site for the latest version.

References:


This content originally appeared on DEV Community and was authored by chatgptnexus


Print Share Comment Cite Upload Translate Updates
APA

chatgptnexus | Sciencx (2025-02-10T00:47:55+00:00) How to Completely Uninstall Docker from Mac. Retrieved from https://www.scien.cx/2025/02/10/how-to-completely-uninstall-docker-from-mac/

MLA
" » How to Completely Uninstall Docker from Mac." chatgptnexus | Sciencx - Monday February 10, 2025, https://www.scien.cx/2025/02/10/how-to-completely-uninstall-docker-from-mac/
HARVARD
chatgptnexus | Sciencx Monday February 10, 2025 » How to Completely Uninstall Docker from Mac., viewed ,<https://www.scien.cx/2025/02/10/how-to-completely-uninstall-docker-from-mac/>
VANCOUVER
chatgptnexus | Sciencx - » How to Completely Uninstall Docker from Mac. [Internet]. [Accessed ]. Available from: https://www.scien.cx/2025/02/10/how-to-completely-uninstall-docker-from-mac/
CHICAGO
" » How to Completely Uninstall Docker from Mac." chatgptnexus | Sciencx - Accessed . https://www.scien.cx/2025/02/10/how-to-completely-uninstall-docker-from-mac/
IEEE
" » How to Completely Uninstall Docker from Mac." chatgptnexus | Sciencx [Online]. Available: https://www.scien.cx/2025/02/10/how-to-completely-uninstall-docker-from-mac/. [Accessed: ]
rf:citation
» How to Completely Uninstall Docker from Mac | chatgptnexus | Sciencx | https://www.scien.cx/2025/02/10/how-to-completely-uninstall-docker-from-mac/ |

Please log in to upload a file.




There are no updates yet.
Click the Upload button above to add an update.

You must be logged in to translate posts. Please log in or register.