Last active
August 31, 2015 18:01
-
-
Save mrpatrick/58ba5832f5f3c4ee9ee7 to your computer and use it in GitHub Desktop.
From https://coderwall.com/p/ewk0mq/stop-remove-all-docker-containers stop / remove 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
docker rm $(docker ps -a |grep -v RUNNING_CONTAINER_NAME | awk '{print $1}') |
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
docker stop $(docker ps -a -q) | |
docker rm $(docker ps -a -q) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment