Created
May 10, 2023 16:54
-
-
Save shollingsworth/856045d8b736cd5ce6fb80003753dbd5 to your computer and use it in GitHub Desktop.
run through all the commands to prune unused resources in docker
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
#!/usr/bin/env bash | |
set -euo pipefail | |
IFS=$'\n\t' | |
# prune stale containers/images | |
docker image prune -f | |
# prune stale volumes | |
docker volume prune -f | |
# prune stale networks | |
docker network prune -f |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment