Skip to content

Instantly share code, notes, and snippets.

@edwardtoday
Last active March 4, 2020 01:54
Show Gist options
  • Save edwardtoday/cc729d95729c4c525bd4be764ce7f0c8 to your computer and use it in GitHub Desktop.
Save edwardtoday/cc729d95729c4c525bd4be764ce7f0c8 to your computer and use it in GitHub Desktop.
Disk cleanup for SANSI GitLab CI runners
30 2 * * Sun /path/to/disk-cleanup.sh
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