-
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
Use --platform / --arch etc., podman will not lookup image shortname #22420
Comments
@vrothberg what say you? |
Please share a full reproducer. Based on the description I am unable to reproduce. |
create Dockerfile
follow below step
step 3 and 4 same Dockerfile different behavior |
podman build --arch amd64 --file Dockerfile (the prompt of registry select show up) I think you meant, this looks like it might be the same issue as: |
Could you try |
|
It works exactly as designed. Once you have selected an image and it's pulled down, the selection is being recorded. See https://www.redhat.com/sysadmin/container-image-short-names for details on the behavior. |
maybe I made you miss understand, step 3 and step 4 can be exchange the order, and same difference behavior. |
Which system are you running on? If there's a recorded alias, there will be no prompt. |
fedora 39, podman version 4.9.4, the post you provide said below but I never find this file and please take a detail look at below workaround for this issue, it still will search local/localbuildimage but not at the first, it prompt first if there is more than one registry even with local match. May be this issue title not match the exact issue. may be re-title to will not lookup local image first. |
Fedora 39 ships with
I need an exact reproducer. Sorry, I am a bit lost in what the problem is. I am sure we'll get to the bottom of the issue. |
Just update to fedora 40, podman version 5.0.1 find alpine in /etc/containers/registries.conf.d/000-shortnames.conf Sorry can't let you you get to reproducer I refind the step description to below make sure more than one registry by below command
Dockerfile
Dockerfile2
prompt will not come out with below step (I think it can find image localalpine )
prompt will show at the third step of below (don't know why image localalpine alreay in local and prompt show behavior not as above three step, but you can force it to fallback to use local image by limit remote registry to only one)
|
Issue Description
if run/build use --platform / --arch etc, podman will not lookup shortname already in local with same platform (use podman inspect output info Architecture/OS), and prompt user to select registry
if use localhost/shortname exact as the RepoTags it will work
microsoft/vscode-remote-release#9748
Steps to reproduce the issue
Steps to reproduce the issue
Describe the results you received
Prompt select image registry
Describe the results you expected
same behaviour as without --platform or --arch
just prompt user select registry when no already build image's platform or arch or os match its shortname.
podman info output
podman version 4.9.4
Podman in a container
No
Privileged Or Rootless
Rootless
Upstream Latest Release
No
Additional environment details
No response
Additional information
No response
The text was updated successfully, but these errors were encountered: