Created
June 3, 2025 01:40
-
-
Save deverman/3ffd984f0e764bcbd95d6f12e1958c5a to your computer and use it in GitHub Desktop.
disco uninstall script uninstall-disco.sh
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
# By Brent Deverman 6/3/25 | |
#!/bin/bash | |
# Script to clean up Disco-related Docker containers and volumes | |
echo "Listing all Docker containers..." | |
docker ps -a | |
echo "Removing Disco-related containers..." | |
docker rm -f $(docker ps -a -q --filter name=disco) | |
echo "Listing Docker volumes..." | |
docker volume ls | |
echo "Removing Disco-related volumes..." | |
docker volume rm $(docker volume ls -q | grep disco) | |
docker swarm leave -f | |
rm -fr /root/disco | |
echo "Cleanup complete. You can now retry 'disco init'." |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment