From 78de15b3c31940057471992333e45832714744e4 Mon Sep 17 00:00:00 2001 From: Naor Livne Date: Mon, 28 Sep 2020 14:07:14 +0300 Subject: [PATCH] fix #150 prune not catching all images --- functions/docker_engine/docker_engine.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/functions/docker_engine/docker_engine.py b/functions/docker_engine/docker_engine.py index 8280e16..2719ed1 100644 --- a/functions/docker_engine/docker_engine.py +++ b/functions/docker_engine/docker_engine.py @@ -121,7 +121,7 @@ def pull_image(self, image_name, version_tag="latest"): def prune_images(self): print("pruning unused images") try: - print(self.cli.prune_images()) + print(self.cli.prune_images(filters={'dangling': False})) except Exception as e: print(e, file=sys.stderr) print("problem pruning unused image")