Last active
February 15, 2017 11:33
-
-
Save obar1/7a12af187b53b36371576cfa505532fe to your computer and use it in GitHub Desktop.
kill docker container
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
| #kill and rm all docker containers | |
| if [[ $(docker ps -q) ]]; then \ | |
| docker kill $(docker ps -q) ;docker rm $(docker ps -a -q) \ | |
| fi | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment