-
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
image not known error despite image being listed for arm64 container on amd64 machine #10344
Comments
additional info with debug logs
|
per recommendation at #3982 (comment) i wiped |
@vrothberg Do we need to add --arch support to podman push? Is this something that should be handled in libimage? |
confirmed that things are working with this version of
|
hi @rhatdan i am good for now with older version of |
I'm reopening, sounds like this got broken during the image library migration. @vrothberg PTAL |
@sdeoras This is definitely a bug. @vrothberg PTAL |
When pushing an image, make sure to ignore the platform of the image to push exactly what the user wishes to. Add a test to make sure we're not regressing in the future. To preserve previous behaviour with respect to attempting to push a manifest list, move the platform check below resolving to a manifest list. Fixes: #containers/podman/issues/10344 Signed-off-by: Valentin Rothberg <[email protected]>
Opened containers/common#557. Thanks for opening the issue! |
Closing as the bug has been fixed. Thanks again for the report! |
thanks @vorburger , this is awesome news! 👍 |
Is this a BUG REPORT or FEATURE REQUEST? (leave only one on its own line)
/kind bug
Description
I am cross-compiling a go-binary for
arm64
arch. and then building a container image for it using--arch
flag inpodman build
command. This workflow is being done on aamd64
machine. I might have updatedpodman
recently and now I am running into a strange issue where I seem to be buildingarm64
container image fine, but I am unable to push it to the registry or save to a tarball. In particular, here is the command output:I can inspect both these container images, however issue is when trying to push to registry or save them as tarballs. I am able to push
amd64
based image fine, however,arm64
image is having issues:Just to show that
amd64
image went fine:Interestingly, this used to work for me and I am not fully sure if something change on the podman in latest version or this is an issue with registry or distroless base images. I am happy to provide more details and apologize if this is not an issue with podman.
Steps to reproduce the issue:
Create a hello world go code and cross-compile for
arm64
as a static binaryCopy that binary into
distroless
base image and build a container image using--arch=arm64
viapodman build
Inspect the image and then try to push to a registry or save to a tarball
Describe the results you received:
As described above.
Describe the results you expected:
Expecting to be able to use
--arch
flag to buildarm64
based container images fromamd64
machine. As I mentioned, I have been successfully using this workflow withpodman
but not sure if something change very recently either with podman or with registries.Additional information you deem important (e.g. issue happens only occasionally):
Output of
podman version
:Output of
podman info --debug
:Package info (e.g. output of
rpm -q podman
orapt list podman
):Have you tested with the latest version of Podman and have you checked the Podman Troubleshooting Guide? (https://github.com/containers/podman/blob/master/troubleshooting.md)
Yes on latest version
No on troubleshooting guide
Additional environment details (AWS, VirtualBox, physical, etc.):
This is on my laptop running Fedora 34
The text was updated successfully, but these errors were encountered: