01
Docker is updated all the time, check documentation for downloading and installing, You can search for
Docker Desktop install
or go to docs.docker.com
**Alos, Instructions are found in the other tutorials on the previous page
02
If you need to Delete Docker Instructions to delete docker are on the (back) - top left link (docker-youtube-homepage) and here below
1. Uninstall Docker Desktop (GUI app)
***MAKE SURE about right directory
If you downloaded Docker Desktop from docker.com:
Quit Docker Desktop:
Click the Docker whale icon in the menu bar → Quit Docker Desktop. Move the app to Trash:
Go to Applications → drag Docker.app to the Trash.
Remove support files:
Open Terminal and run:
rm -rf ~/Library/Containers/com.docker.docker rm -rf ~/Library/Containers/com.docker.helper rm -rf ~/.docker rm -rf ~/Library/Group\ Containers/group.com.docker rm -rf ~/Library/Preferences/com.docker.docker.plist rm -rf ~/Library/Logs/Docker* rm -rf ~/Library/Caches/com.docker.docker
rm -rf ~/Library/Containers/com.docker.vmnetd rm -rf /private/var/tmp/com.docker.vmnetd.socket
2. Uninstall Docker installed via Homebrew
If you used Homebrew (brew install --cask docker):
brew uninstall --cask docker
3. Remove images, volumes, and networks (if you want a total reset)
docker system prune -a --volumes
On macOS, ~/Library is a hidden folder, so you won’t see Library/Containers in Finder unless you reveal it. That’s why it looks like it’s missing.
Here are two ways to deal with it:
🔹 Option 1: Open Library in Finder
In Finder, click Go in the menu bar. Hold down the Option (⌥) key → you’ll see Library appear. Click it → now you can navigate to Library/Containers.
🔹 Option 2: Use Terminal (easier)
You don’t need to manually browse — just run this one-liner in Terminal to wipe Docker Desktop and all its leftover files:
rm -rf /Applications/Docker.app \ ~/Library/Containers/com.docker.docker \ ~/Library/Containers/com.docker.helper \ ~/Library/Containers/com.docker.vmnetd \ ~/Library/Group\ Containers/group.com.docker \ ~/Library/Preferences/com.docker.docker.plist \ ~/Library/Logs/Docker* \ ~/Library/Caches/com.docker.docker \ ~/.docker \ /private/var/tmp/com.docker.vmnetd.socket
brew uninstall docker brew uninstall docker-compose
(should return “command not found” if fully removed)
which docker docker --version
03 - troubleshooting
If you are seeing "Operation not permitted"
1. Stop Docker before deleting
Make sure Docker Desktop is completely shut down:
osascript -e 'quit app "Docker"'
See if docker files remain with this
sudo find / -name '*docker*' -print
4. toubleshoot - fix
BASH FIX, this will complelty erase docker or any other program that has files scattered
⚠️ Warning: This will delete any file/folder with “docker” in the name, including things in your home directory like projects, config files, etc. Make sure you backup anything important first.
Here’s a single command approach:
sudo find / -name '*docker*' -print 2>/dev/null | while read path; do echo "Deleting: $path" sudo rm -rf "$path" 2>/dev/null done
Explanation: find / -name '*docker*' -print 2>/dev/null Searches the whole filesystem for anything containing “docker” and ignores permission errors. while read path; do ... done Iterates over each result. sudo rm -rf "$path" 2>/dev/null Deletes it silently if possible. echo "Deleting: $path" Prints what’s being deleted so you can monitor progress.
or, If you want it as a bash script you can save it as remove-docker.sh:
#!/bin/bash echo "Starting Docker cleanup..." sudo find / -name '*docker*' -print 2>/dev/null | while read path; do echo "Deleting: $path" sudo rm -rf "$path" 2>/dev/null done echo "Done!"
Make it executable:
chmod +x remove-docker.sh ./remove-docker.sh
4. toubleshoot - fix (SAFE)
safe, Docker-specific cleanup script for macOS that targets only Docker Desktop, CLI binaries, and related system files—not anything in your personal projects or unrelated files. Here’s a recommended script:, you;ll have to do one by on i think
#!/bin/bash echo "Starting safe Docker cleanup..." # Quit Docker Desktop if running osascript -e 'quit app "Docker"' 2>/dev/null # Remove Docker Desktop app echo "Removing Docker Desktop application..." sudo rm -rf /Applications/Docker.app # Remove Docker binaries from /usr/local/bin echo "Removing Docker CLI binaries..." sudo rm -f /usr/local/bin/docker sudo rm -f /usr/local/bin/docker-compose sudo rm -f /usr/local/bin/docker-machine # Remove Docker system files echo "Removing Docker system files..." sudo rm -rf ~/Library/Containers/com.docker.docker sudo rm -rf ~/Library/Application\ Support/Docker\ Desktop sudo rm -rf ~/Library/Group\ Containers/group.com.docker # Remove Docker configuration and state files sudo rm -rf ~/.docker # Optional: remove Docker virtual machines (if using Docker Machine) sudo rm -rf /usr/local/share/docker sudo rm -rf /usr/local/lib/docker sudo rm -rf /var/lib/docker 2>/dev/null echo "Docker cleanup complete!"
Usage: Save it as safe-docker-cleanup.sh.
Make it executable:
chmod +x safe-docker-cleanup.sh
run it