-
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
podman auto-update: reject short image names on container creation #15879
Comments
@vrothberg PTAL |
I think this is expected and why we have both |
This is on Fedora 36 with Podman 4.2.0. I think What is unexpected for me is that for |
I will take a look. Podman should pull from localhost but it may be pulling
from both, localhost and Docker.io for some reason.
I’m traveling at the moment, so it may take a couple of days.
…On Wed 21 Sep 2022 at 08:44, Tom Deseyn ***@***.***> wrote:
This is on Fedora 36 with Podman 4.2.0.
I think local vs registry is about whether to try to pull the image.
What is unexpected for me is that for podman run awesome-worker-app:latest
means localhost/awesome-worker-app:latest.
While for podman auto-update it means
docker.io/library/awesome-worker-app:latest.
—
Reply to this email directly, view it on GitHub
<#15879 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ACZDRA62EQFHVUGLIC6SVXTV7L7KXANCNFSM6AAAAAAQR6A2DY>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
OK, now I see it. It looks like a regression as Podman should error out on container creation. |
You mean: |
Yes. See the following quote from the docs:
|
I opened #15933 to fix the underlying issue. |
Another approach would be for I'm laying out some options, because I like using short names for local images. |
Those can be subject to change. It is non-deterministic. While images can still be rewritten via Since auto updates are security relevant, I think it's important to have as less "magic" as possible.
Using |
To elaborate on the local images: The lookup order can vary based on the images present. Requesting a FQN there as well reduces ambiguity. |
I agree FQN should be required. |
Auto updates using the "registry" policy require container to be created with a fully-qualified image reference. Short names are not supported due the ambiguity of their source registry. Initially, container creation errored out for non FQN images but it seems that Podman has regressed. Fixes: containers#15879 Signed-off-by: Valentin Rothberg <[email protected]>
ExecStart
has:This container is running:
auto-update
is checkingdocker.io
:I know I can fix this using
io.containers.autoupdate=local
.Does it make sense to check
docker.io
forautoupdate=registry
when the image is referenced asawesome-worker-app:latest
(andlocalhost/awesome-worker-app:latest
)?cc @mheon @rhatdan
The text was updated successfully, but these errors were encountered: