Last active
March 4, 2020 01:54
-
-
Save edwardtoday/cc729d95729c4c525bd4be764ce7f0c8 to your computer and use it in GitHub Desktop.
Disk cleanup for SANSI GitLab CI runners
This file contains 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
30 2 * * Sun /path/to/disk-cleanup.sh |
This file contains 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
docker system prune -f | |
docker volume ls -qf dangling=true | xargs -r docker volume rm | |
docker images -a | grep "v3pro" | awk '{print $3}' | xargs --no-run-if-empty docker rmi -f | |
docker images -a | grep "srp-core" | awk '{print $3}' | xargs --no-run-if-empty docker rmi -f | |
docker images -a | grep "stellar-home" | awk '{print $3}' | xargs --no-run-if-empty docker rmi -f |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment