Last active
August 1, 2017 17:05
-
-
Save nackjicholson/4953ed00fe5fa6ba75b83561e8f00450 to your computer and use it in GitHub Desktop.
docker one liners to remove all stuff
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
# Stop all docker process | |
docker stop $(docker ps -a -q) | |
# rm all docker containers | |
docker rm $(docker ps -a -q) | |
# rm all docker images with some selection logic | |
docker rmi $(docker images --format "{{.Repository}}:{{.Tag}}") | |
# or | |
docker rmi $(docker images -a -q) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment