Last active
May 13, 2024 08:07
-
-
Save mikea/d23a839cba68778d94e0302e8a2c200f to your computer and use it in GitHub Desktop.
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
alias docker-cleanup='docker ps -a -q | xargs -I {} docker rm {} ; docker images -q -f dangling=true | xargs -I {} docker rmi -f {}; docker volume ls -qf dangling=true | xargs -I {} docker volume rm {}' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Please add
docker builder prune
, otherwise docker disk usage keeps expanding.