changeset 866:909f72bd6cb3

remove stopped containers
author Jeff Hammel <k0scist@gmail.com>
date Wed, 18 Jul 2018 09:29:20 -0700
parents 20aa4a6ef719
children 002c1e85ff30
files bin/docker_vacuum.sh
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
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