Skip to content

Instantly share code, notes, and snippets.

@marek-saji
Last active April 3, 2017 11:38
Show Gist options
  • Save marek-saji/373e55942ec28689e41abc0a6a598096 to your computer and use it in GitHub Desktop.
Save marek-saji/373e55942ec28689e41abc0a6a598096 to your computer and use it in GitHub Desktop.
✨ Reclaim storage space with this ONE WEIRD TRICK ✨
#!/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