Created
April 24, 2017 13:14
-
-
Save boris/b9231a7beae806943e490ebbec65eeb4 to your computer and use it in GitHub Desktop.
Small script to remove containers in 'Exited' state.
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
#!/bin/bash | |
FIND=`docker ps -a | grep Exited | awk '{print $1}'` | |
for i in $FIND; | |
do | |
docker rm $i | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment