-
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
looking up local images should consider search registries #6381
Comments
This is based on the search path in your registries.conf. Since docker.io comes first, it will be chosen first. If you want to use fedora registry images first then you need to either fully specify the fedora registry or switch the search order. |
Registries.conf in fedora by default have this search path. |
It wasn't :-) I think you mean for remote "resolution", whereas I am talking about local images. I am wondering if it depends on the order of the original image pulls? |
To clarify my original report/question:
So my question was why does podman choose the older (or first installed) image in my case? |
podman run imagename
choose older image?podman run imagename
choose older local image?
I can reproduce with:
Note that the described order of |
I reopened to find consensus how Podman should behave. |
This is one of the things I really wanted to solve in the refactor of the image package to be shared with Buildah & CRI-O - consistent resolution is shortnames is a significant issue in our tools. |
@ParkerVR @ryanchpowell This is a case where the shortname table would help out, so the user referring to a shortname is always the same. |
A friendly reminder that this issue had no activity for 30 days. |
I think that we should tackle it now and teach NewFromLocal(name string) to iterate the search registries for short names. That should even out the semantics across other commands. @mtrmac, I can tackle it but I want your ACK on the idea. |
podman run imagename
choose older local image?
Yes, I would love for OTOH, read I would love for that to be replaced with something else, but if you want an ACK that a specific kind of replacement makes sense, I’m not the person to ask because I can only guess at goals of that search code; that might have to be tracked down the history, maybe all the way to Whatever the goals of the search code, I have a strong suspicion that removing that search is going to break some users that incorrectly relied on those very loose matching semantics. That may well be worth it, but I want to make sure it’s a conscious decision. |
When looking up local images, take the unqualified-serach registries of the registries.conf into account (on top of "localhost/"). Also extend the integration tests to prevent future regressions. Fixes: containers#6381 Signed-off-by: Valentin Rothberg <[email protected]>
When looking up local images, take the unqualified-serach registries of the registries.conf into account (on top of "localhost/"). Also extend the integration tests to prevent future regressions. Fixes: containers#6381 Signed-off-by: Valentin Rothberg <[email protected]>
/kind bug
Description
podman run <imagename>
chose an older local image.Steps to reproduce the issue:
podman pull docker.io/fedora:33 && podman pull registry.fedoraproject.org/fedora:33
podman run -it --rm fedora:33
Describe the results you received:
For me the older image was run (in my case my docker.io/fedora:33 was several months old).
Describe the results you expected:
Newer image to used.
Or is this a security feature?
Output of
podman version
:Output of
podman info --debug
:Package info (e.g. output of
rpm -q podman
orapt list podman
):Additional environment details (AWS, VirtualBox, physical, etc.):
Physical: Fedora 31 Silverblue
The text was updated successfully, but these errors were encountered: