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

podman images --filter: documented filters don't work #19966

Closed
edsantiago opened this issue Sep 13, 2023 · 1 comment · Fixed by containers/common#1676 or #20192
Closed

podman images --filter: documented filters don't work #19966

edsantiago opened this issue Sep 13, 2023 · 1 comment · Fixed by containers/common#1676 or #20192
Labels
kind/bug Categorizes issue or PR as related to a bug. locked - please file new issue/PR Assist humans wanting to comment on an old issue or PR with locked comments.

Comments

@edsantiago
Copy link
Member

edsantiago commented Sep 13, 2023

`podman-images(1) lists a number of filters, some of which (a) don't show up in command completion, and (b) don't work:

Supported filters:
| Filter | Description |
|:---------------:|-----------------------------------------------------------------------------------------------|
| *id* | Filter by image ID. |
| *before* | Filter by images created before the given IMAGE (name or tag). |
| *containers* | Filter by images with a running container. |
| *dangling* | Filter by dangling (unused) images. |
| *digest* | Filter by digest. |
| *intermediate* | Filter by images that are dangling and have no children |
| *label* | Filter by images with (or without, in the case of label!=[...] is used) the specified labels. |
| *manifest* | Filter by images that are manifest lists. |
| *readonly* | Filter by read-only or read/write images. |
| *reference* | Filter by image name. |
| *after*/*since* | Filter by images created after the given IMAGE (name or tag). |
| *until* | Filter by images created until the given duration or time. |

id, digest

$ bin/podman images
REPOSITORY                    TAG         IMAGE ID      CREATED        SIZE
quay.io/libpod/testimage      20221018    f5a99120db64  11 months ago  12.7 MB
quay.io/libpod/testimage      00000004    560956ac186f  15 months ago  1.46 MB
quay.io/libpod/alpine_labels  latest      5e9e9275e4d6  19 months ago  5.87 MB
$ bin/podman images --filter id=f5a
REPOSITORY  TAG         IMAGE ID    CREATED     SIZE
$ bin/podman images --filter id=f5a99
REPOSITORY  TAG         IMAGE ID    CREATED     SIZE

$ bin/podman images --filter digest=f5a99
Error: invalid value "f5a99" for digest filter: invalid checksum digest format
$ ... digest=sha256:f5a99
Error: invalid value "sha256:f5a99" for digest filter: invalid checksum digest length
$ ...okay, it works if I `podman image inspect f5a | gron | grep Digest` and copy/paste that

intermediate

$ bin/podman images --filter intermediate=true
Error: specifying "intermediate" filter more than once with different values is not supported

(it works with --intermediate=false but that doesn't seem useful)

manifest[=true/false] works, but does not show up in autocompletion.

Options that don't work should be fixed, or removed from man page.

All valid options should appear in autocompletion.

@Luap99 Luap99 added kind/bug Categorizes issue or PR as related to a bug. documentation Issue or fix is in project documentation labels Sep 13, 2023
@edsantiago edsantiago removed the documentation Issue or fix is in project documentation label Sep 18, 2023
@edsantiago
Copy link
Member Author

Documentation vs autocomplete is now fixed (#19987). This is now a functionality bug, so I've removed the documentation label.

@github-actions github-actions bot added the locked - please file new issue/PR Assist humans wanting to comment on an old issue or PR with locked comments. label Dec 29, 2023
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Dec 29, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
kind/bug Categorizes issue or PR as related to a bug. locked - please file new issue/PR Assist humans wanting to comment on an old issue or PR with locked comments.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants