build: prune images should also clean

This commit is contained in:
Bassam Tabbara committed 2017-06-20 20:57:46 -07:00
1 parent bdf5887e13
commit bbdf90a9cc
1 file changed
+1 -1
+1 -1
View File
@@ -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}}" \