Created
April 6, 2018 02:46
-
-
Save junejie/4cf63ff0055f57fd1841b1c1d85a936e 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
#!/usr/bin/env bash | |
docker volume rm $(docker volume ls -qf dangling=true) | |
docker rmi $(docker images --filter "dangling=true" -q --no-trunc) | |
docker rmi $(docker images | grep "none" | awk '/ / { print $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