Created
January 22, 2016 18:28
-
-
Save noppelmax/312c505afb5a2138d5cb to your computer and use it in GitHub Desktop.
Removes all not currently running docker 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 | awk '(!(/Up/) && !(/NAMES/)) {print $NF}') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment