Created
January 4, 2014 09:34
-
-
Save anildigital/8253474 to your computer and use it in GitHub Desktop.
Cleanup exited docker containers
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
sudo docker ps -a | grep Exit | awk '{print $1}' | sudo xargs docker rm |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
sudo docker ps -a | awk '/Exit/ {print $1}' | sudo xargs docker rm