From e1d805fc3da47edf96db044e4a790a76ce97121e Mon Sep 17 00:00:00 2001 From: Lior Goikhburg Date: Fri, 4 Mar 2016 17:28:22 +0300 Subject: [PATCH] remove [hash]: from images -q --no-trunc for compatibility newer docker versions --- docker-gc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docker-gc b/docker-gc index 9d10071..c5fc6f9 100755 --- a/docker-gc +++ b/docker-gc @@ -230,7 +230,7 @@ xargs -n 1 $DOCKER inspect -f '{{.Image}}' 2>/dev/null | sort | uniq > images.used # List images to reap; images that existed last run and are not in use. -$DOCKER images -q --no-trunc | sort | uniq > images.all +$DOCKER images -q --no-trunc | sed 's/[^:]\+://' | sort | uniq > images.all # Find images that are created at least GRACE_PERIOD_SECONDS ago echo -n "" > images.reap.tmp