# HG changeset patch # User Jeff Hammel # Date 1531931360 25200 # Node ID 909f72bd6cb3cf9aeb596f11d5763d6da2ba671f # Parent 20aa4a6ef7193111c89c6ea77457997c6404ce88 remove stopped containers diff -r 20aa4a6ef719 -r 909f72bd6cb3 bin/docker_vacuum.sh --- 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