add script to remove all stopped containers

master
Andrew Coleman 2019-12-17 13:59:38 -05:00
parent d09baec621
commit 6132bd2ff5
1 changed files with 4 additions and 0 deletions

4
bin/clean-stopped-containers Executable file
View File

@ -0,0 +1,4 @@
#!/bin/bash
for i in $(docker ps -aq -f status=exited) ; do
docker rm -f -v $i
done