Created
July 19, 2019 18:08
-
-
Save mauricionobrega/031c8c6020ce4051ee34f5e99877f607 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
# http://blog.baudson.de/blog/stop-and-remove-all-docker-containers-and-images | |
# List all containers (only IDs) | |
alias dockerListContainers='docker ps -aq' | |
# Stop all running containers | |
alias dockerStopContainers='docker stop $(docker ps -aq)' | |
# Remove all containers | |
alias dockerRemoveAllContainers='docker rm $(docker ps -aq)' | |
# Remove all images | |
alias dockerRemoveAllImages='docker rmi $(docker images -q)' | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment