From bbdf90a9ccaa5f186f0e8ec48ad1749b7209dce0 Mon Sep 17 00:00:00 2001 From: Bassam Tabbara Date: Sat, 3 Jun 2017 14:56:56 -0700 Subject: [PATCH] build: prune images should also clean --- images/image.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/images/image.mk b/images/image.mk index f46525522..d9947fde3 100644 --- a/images/image.mk +++ b/images/image.mk @@ -127,7 +127,7 @@ clean.all: clean.init @$(MAKE) do.orphan CLEAN_IMAGES="$(shell docker images | grep -E '^$(BUILD_REGISTRY)|$(HOST_REGISTRY)|$(REGISTRY)/' | awk '{print $$1":"$$2}')" # prune removes old orphaned images and old cached images -prune: +prune: clean.build @echo === pruning images older than $(PRUNE_HOURS) hours @echo === keeping a minimum of $(PRUNE_KEEP_ORPHANS) orphaned images and $(PRUNE_KEEP_CACHED) cached images @CLEAN_IMAGES="$(shell docker images --format "{{.CreatedAt}}#{{.Repository}}:{{.Tag}}" \