Comments (13)
@vrothberg what say you?
from podman.
Please share a full reproducer. Based on the description I am unable to reproduce.
from podman.
create Dockerfile
FROM alpine:latest
CMD ["echo","hello world"]
follow below step
- podman pull docker.io/alpine:latest
- podman inspect alpine (get the architecture info as amd64)
- podman --arch amd64 --file Dockerfile (the prompt of registry select show up)
- podman --file Dockerfile (the prompt of registry will not show up)
step 3 and 4 same Dockerfile different behavior
from podman.
podman build --arch amd64 --file Dockerfile (the prompt of registry select show up)
podman build --file Dockerfile (the prompt of registry will not show up)
I think you meant, this looks like it might be the same issue as:
from podman.
Could you try --platform linux/amd64
to see if it fixes your issue.
from podman.
--platform linux/amd64
not fix the issue ,the prompt of registry select show up
from podman.
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.
from podman.
maybe I made you miss understand, step 3 and step 4 can be exchange the order, and same difference behavior.
step 1 , step 2 , step 4 never give us any select prompt.
from podman.
Which system are you running on? If there's a recorded alias, there will be no prompt.
from podman.
fedora 39, podman version 4.9.4,
the post you provide said below but I never find this file
Podman will automatically record a new short-name alias in the users $HOME/.config/containers/short-name-aliases.conf 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.
microsoft/vscode-remote-release#9748 (comment)
May be this issue title not match the exact issue. may be re-title to will not lookup local image first.
from podman.
Fedora 39 ships with /etc/containers/registries.conf.d/000-shortnames.conf
which has an alias for alpine
, so pulling this image will never show a prompt.
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.
microsoft/vscode-remote-release#9748 (comment)
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.
from podman.
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
podman info -f json | jq '.registries["search"]'
Dockerfile
FROM alpine:latest
CMD ["echo","hello world"]
Dockerfile2
FROM localalpine:latest
CMD ["echo","hello world2"]
prompt will not come out with below step (I think it can find image localalpine )
podman pull alpine:latest
podman build --file Dockerfile -t localalpine
podman build --file Dockerfile2 -t locallocalalpine
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)
podman pull alpine:latest
podman build --file Dockerfile -t localalpine
podman build --arch amd64 --file Dockerfile2 -t locallocalalpine
from podman.
Thanks a lot for providing the reproducer. It's essentially the same issue as #17063. #12682 gives some important context as well.
from podman.
Related Issues (20)
- podman kube play unhealthy does not restart container
- `podman container runlabel` instead of `podman runlabel`
- Templated quadlet container name does not escape invalid characters HOT 1
- Podman on windows looks in too many (wrong) places for configuration files HOT 3
- Windows: systemd podman-restart.service cannot be enabled as user in rootless setup
- unable to replace "host-gateway" of host entry "host.docker.internal:host-gateway" HOT 1
- [RFE] Load multi-arch images with `podman load`
- HealthCmd interval in quadlet not being followed + transient timers not cleaned up HOT 9
- SHA digests for *.pkg files are missing from shasums file in 5.1.0 release HOT 2
- podman pull does not use https_proxy when using podman machine, but will use on linux HOT 10
- /etc/hosts becomes empty after checkpoint and restore HOT 1
- Build errors when copying files with extended attributes between stages HOT 3
- Allow disabling "Executing external compose provider" HOT 1
- Pasta failed error when running container with a privileged podman in container setup HOT 5
- Can't init or start VM, podman can't open podman-machine-default.lock: operation not permitted HOT 12
- Podman v5 Quadlet .pod support for "ShmSize=" parameter HOT 1
- [Documentation provided] How to install on Ubuntu 24.04?
- podman machine start requires Rosetta even when CONTAINERS_MACHINE_ROSETTA is set to false HOT 3
- Pasta: "ASSERTION FAILED in flow_defer_handler (flow.c:315): !flow_new_entry" HOT 10
- Podman-machine default installer, won't resolve/progress on a download issue (lost connection, incomplete file...) HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from podman.