-
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
[spike] remote filters #18412
Comments
A friendly reminder that this issue had no activity for 30 days. |
@edsantiago @Luap99 are working on this correct? |
Not to my knowledge. |
No |
Oops, my tired eyes read this as the problem with filtering .HasPrefix, verus ContainsString for ID matching. |
A friendly reminder that this issue had no activity for 30 days. |
This has been approved correct? |
I don't think anybody has worked on it yet. At the moment, it remains unclear what needs to be done and how much of a problem it is. |
s/approved/improved/g |
I think this problem persists. At least I am unaware of a fix. |
Looked into this a bit and when more than one filter is passed, docker does an AND operation where if the image matches all the given filters, only then will it be in the final result. While podman seems to do an OR operation where if any image matches any of the filters given, it will be in the final result. This is the case for both local and remote. We did a similar fix for volumes here #19219, I think images should follow suit and match the behavior. @rhatdan @vrothberg WDYT? |
@umohnani8 I think that's orthogonal to the issue here.
Filters can be in the format of |
@vrothberg can you please give me an example? I have tried both the remote and local cases and I see the AND vs OR issue for the filters given for the local case. The remote case has another problem where if you pass it two When I just do |
For the AND vs OR, I´d prefer breaking that out into a separate issue. For the filter issue, look at the linked issue and the old PR: This should highlight the differences. The way Podman works does not allow for discriminating |
As described in #18345 (comment), Podman clients and Docker clients behave slightly different when it comes to passing filters over the REST API.
I did not fully investigate it but my currently feeling is that Podman clients do it wrong.
Image filters, for instance, can use a
key=value
orkey
syntax. Docker clients split the filter map as"{"label":["version=1.0"]}
while Podman clients split the filter map as"{"label":["version","1.0"]}
. For the latter, I don't think we can distinguish akey=value
from akey
if more than one filter of the same type (e.g.,label
) are specified.The text was updated successfully, but these errors were encountered: