Created
July 3, 2019 04:20
-
-
Save parties/76ec2118db2ecdb37bb98aaa73727a63 to your computer and use it in GitHub Desktop.
some docker delete shortcuts
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_rm_containers='docker rm $(docker ps -a -q)' | |
alias docker_rm_dangling='docker rmi $(docker images --filter dangling=true -q 2>/dev/null) 2>/dev/null' | |
alias docker_kill_all='docker kill $(docker ps -a -q)' | |
alias docker_rm_images='docker rmi $(docker images -a -q)' | |
alias docker_danger_rm_all='docker rmi $(sudo docker images -aq) --force' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment