Last active
August 7, 2021 07:57
-
-
Save MatteoGioioso/c93b1e562705c20311c8785be48b43bb to your computer and use it in GitHub Desktop.
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
docker volume rm $(docker volume ls -qf dangling=true); | |
docker volume ls -qf dangling=true | xargs -r docker volume rm; | |
docker rmi $(docker images --filter "dangling=true" -q --no-trunc); | |
docker rmi $(docker images | grep "none" | awk '/ / { print $3 }'); # docker rmi $(docker images | tr -s ' ' | cut -d ' ' -f 3) | |
docker rm $(docker ps -qa --no-trunc --filter "status=exited"); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment