Forked from weblancaster/gist:6e7f43fc02725ce747e224b0c4290906
Last active
January 28, 2018 11:01
-
-
Save r21gh/48a0c4490de3682ea7b7095deed0524d to your computer and use it in GitHub Desktop.
Kill all container, remove all images and stop all containers
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
| #stop all containers: | |
| docker stop $(docker ps -q) | |
| #remove all containers | |
| docker rm $(docker ps -a -q) | |
| #remove all docker images | |
| docker rmi $(docker images -q) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment