Skip to content

Commit

Permalink
fix #150 prune not catching all images
Browse files Browse the repository at this point in the history
  • Loading branch information
naorlivne committed Sep 28, 2020
1 parent bc138d3 commit 78de15b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion functions/docker_engine/docker_engine.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit 78de15b

Please sign in to comment.