Created
February 12, 2025 11:46
-
-
Save koola/6a68c4838393a27b9b35cb9f65950ca6 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
(( ${#} >= 0 )) || { | |
echo 'DISCLAIMER: USE THIS SCRIPT AT YOUR OWN RISK!' | |
echo 'THE AUTHOR TAKES NO RESPONSIBILITY FOR THE RESULTS OF THIS SCRIPT.' | |
echo 'Press Control-C to quit now.' | |
read -r | |
echo 'Re-running the script with sudo.' | |
echo 'You may be prompted for a password.' | |
sudo "${0}" sudo | |
exit $? | |
} | |
# Remove files and directories related to Docker. | |
echo '>>> Removing Docker files and directories...' | |
sudo rm -rfv /Applications/Docker.app \ | |
/usr/local/bin/docker \ | |
/usr/local/bin/docker-compose \ | |
/usr/local/bin/kubectl.docker \ | |
/usr/local/bin/hub-tool \ | |
/usr/local/bin/docker-credential-desktop \ | |
~/Library/PrivilegedHelperTools/com.docker.socket \ | |
~/Library/LaunchDaemons/com.docker.socket.plist \ | |
~/Library/Preferences/com.electron.docker-frontend.plist \ | |
~/Library/Group\ Containers/group.com.docker \ | |
~/Library/Containers/com.docker.docker \ | |
~/.docker | |
exit 0 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment