Created
September 11, 2019 15:58
-
-
Save mijdavis2/c717bdd02fbab12080f80b0999112cdc to your computer and use it in GitHub Desktop.
Docker cleanup
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
#!/bin/bash | |
# | |
# To add this as a fish function: | |
# function dockercleanup | |
# docker volume rm (docker volume ls -f dangling=true -q); docker system prune -a | |
# end | |
# funcsave dockercleanup | |
# | |
docker volume rm $(docker volume ls -f dangling=true -q) | |
docker system prune -a |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment