Skip to content
Snippets Groups Projects
Commit 9256282e authored by nimrod's avatar nimrod
Browse files

Small fix.

Check all containers (not just running) for images that are in use.
parent 2c532933
No related branches found
No related tags found
No related merge requests found
......@@ -46,7 +46,7 @@ def exclude(images, excludes, verbose):
def not_in_use(client, images, verbose):
"""Return the images that aren't in use by containers right now."""
in_use_images = [c.image.id for c in client.containers.list()]
in_use_images = [c.image.id for c in client.containers.list(all=True)]
not_in_use_images = images.copy()
# pylint: disable=invalid-name
for Id in in_use_images: # noqa: N806
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment