Mercurial > hg > config
diff bin/docker_vacuum.sh @ 866:909f72bd6cb3
remove stopped containers
author | Jeff Hammel <k0scist@gmail.com> |
---|---|
date | Wed, 18 Jul 2018 09:29:20 -0700 |
parents | e300310bb98c |
children | 002c1e85ff30 |
line wrap: on
line diff
--- a/bin/docker_vacuum.sh Mon Jun 18 14:48:41 2018 -0700 +++ b/bin/docker_vacuum.sh Wed Jul 18 09:29:20 2018 -0700 @@ -2,6 +2,9 @@ # http://blog.yohanliyanage.com/2015/05/docker-clean-up-after-yourself/ +# Remove all stopped containers +docker container prune -f + # Make sure exited containers are deleted docker rm -v $(docker ps -a -q -f status=exited) @@ -10,6 +13,3 @@ # Remove unwanted volumes docker volume rm $(docker volume ls -qf dangling=true) - -# TODO: remove stopped containers -# docker container prune -f