Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] images.list() filter does not work properly #457

Open
D3vil0p3r opened this issue Oct 24, 2024 · 0 comments
Open

[BUG] images.list() filter does not work properly #457

D3vil0p3r opened this issue Oct 24, 2024 · 0 comments

Comments

@D3vil0p3r
Copy link

D3vil0p3r commented Oct 24, 2024

I have an Arch Linux environment with the following podman pulled images:

docker.io/library/python:3.12.2-bullseye
docker.io/nwodtuhs/exegol:osint

I wrote a simple Python script to filter the images list by name:

import podman
from podman import PodmanClient

client = podman.from_env()
print("Podman client:", client)

image_name="nwodtuhs/exegol:osint"
images = client.images.list(name=image_name, filters={"dangling": False})
print(images)

but I get:

[<Image: 'docker.io/library/python:3.12.2-bullseye'>, <Image: 'docker.io/nwodtuhs/exegol:osint'>]

so, it does not filter the result by name.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant