-
Notifications
You must be signed in to change notification settings - Fork 783
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
buildah is unable to push an image for a non-default platform #5637
Comments
Thanks for your report. If I understand the situation right, that behavior of c/image is, on its terms, correct. Buildah’s code must choose to trigger a multi-platform push (or, alternatively, use options that let the user choose the desired platform for a single-platform push). I suspect that code already exists in buildah, and this is already possible, using |
Yes, either |
A friendly reminder that this issue had no activity for 30 days. |
@nalind Should we close this or better document the current behaviour? |
Either the latter, or tweak how |
A friendly reminder that this issue had no activity for 30 days. |
If I build an image for a non-default platform, e.g. i386 on amd64, armhf or armel on arm64, without building the image for the default platform, buildah is not able to push it. It complains because it doesn't find the default platform-image:
I can reproduce it locally with a simple Dockerfile:
FROM debian:unstable
ARG ARCH=amd64
RUN apt-get update
RUN apt-get -y install build-essential
and building it with:
The error comes from
chooseInstance()
: https://github.com/containers/image/blob/main/internal/manifest/oci_index.go#L264Building the default platform additionally fixes the issue (I am able to push the image), but I need to avoid that.
The text was updated successfully, but these errors were encountered: