From 51c1bbbd02952f5bcbf94aae4d0741f89d6a5e86 Mon Sep 17 00:00:00 2001 From: andrewsykim Date: Fri, 15 Apr 2016 16:50:39 -0400 Subject: [PATCH] remove sha256 for docker version 1.10 --- docker-gc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docker-gc b/docker-gc index f62ce13..0845e6f 100755 --- a/docker-gc +++ b/docker-gc @@ -231,7 +231,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/sha256://' | sort | uniq > images.all # Find images that are created at least GRACE_PERIOD_SECONDS ago echo -n "" > images.reap.tmp