Created
April 29, 2019 14:11
-
-
Save medwig/2a465bd1eef5c72046db750a014c3e46 to your computer and use it in GitHub Desktop.
Docker delete all images and containers alias
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
alias docker_rm_all_containers="docker ps -aq | xargs docker rm -f" | |
alias docker_rm_all_images="docker images -q | xargs docker rmi -f" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
source:
moby/moby#928 (comment)