-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
Allow consistent exclusion filters between 'podman container list' & 'podman image list' #21398
Comments
Containers are filtered using a container-specific filter in podman/pkg/domain/filters/containers.go Line 20 in 2ba3605
compileImageFilters https://github.com/containers/common/blob/179239ade65265594d3fb0495f0c4599a85dfa50/libimage/filters.go#L75 in c/common AFAIK. Even if merging the two routes would be ill advised, sharing syntax would be nice IMHO.
"Quick" fix would be adding |
Talked with @mheon; I'm going to try and rectify the |
FWIW, compare containers/common#1800 . The filters don’t really have a regular syntax, That might well be a unique special case for |
A friendly reminder that this issue had no activity for 30 days. |
Bump |
@robbmanes any progress? |
Sorry everyone; I've been sick lately and out of work. Healthy and back now. Reusing the code between I'll try to push it tomorrow or Tuesday for review. |
Feature request description
$ podman image list
allows the following syntax:Here's a working example:
However, currently when using
$ podman container list
this syntax only works forlabel
filter:Providing a consistent filtering experience would allow us to transform this:
Into:
Suggest potential solution
Re-use code from
podman image list --filter
flag in$ podman container list --filter
Have you considered any alternatives?
Specifying filters manually by hand as shown above
Additional context
N/A
The text was updated successfully, but these errors were encountered: