Last active
April 3, 2017 11:38
-
-
Save marek-saji/373e55942ec28689e41abc0a6a598096 to your computer and use it in GitHub Desktop.
✨ Reclaim storage space with this ONE WEIRD TRICK ✨
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/sh | |
printf "Dangling images... " | |
docker images -q -f "dangling=true" | xargs -r docker rmi | |
echo "done." | |
printf "Unused volumes... " | |
docker volume prune -f |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment