podman: Fail hard instead of pulling non-native image architecture
Feature request description
Consider we are on ppc64le host, and pulling docker://quay.io/centos/centos:7 -> that image doesn’t provide multi-arch manifest, and x86_64 image is silently pulled. Is there an option that will avoid even pulling such an image? I haven’t found this in skopeo copy either.
Suggest potential solution
No response
Have you considered any alternatives?
No response
Additional context
This has caused tricky issues with Mock for epel-7-ppc64le chroots builds when we started using --use-bootstrap-image (doing podman pull on background).
About this issue
- Original URL
- State: open
- Created 10 months ago
- Comments: 17 (9 by maintainers)
Commits related to this issue
- podman: assert that pulled image has "native" arch Relates: https://github.com/containers/podman/issues/19717 Resolves: https://github.com/fedora-copr/copr/issues/2875 — committed to praiskup/mock by praiskup 10 months ago
- podman: assert that pulled image has "native" arch Relates: https://github.com/containers/podman/issues/19717 Resolves: https://github.com/fedora-copr/copr/issues/2875 — committed to praiskup/mock by praiskup 10 months ago
- podman: assert that pulled image has "native" arch Relates: https://github.com/containers/podman/issues/19717 Resolves: https://github.com/fedora-copr/copr/issues/2875 — committed to praiskup/mock by praiskup 10 months ago
- podman: assert that pulled image has "native" arch Relates: https://github.com/containers/podman/issues/19717 Resolves: https://github.com/fedora-copr/copr/issues/2875 — committed to rpm-software-management/mock by praiskup 10 months ago
@praiskup, you can run
podman version --format "{{.OsArch}}"