-
-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Issue with latest Docker hub arm64 image #9901
Comments
@manalejandro what is the platform you are using for running this? |
I have it deployed on one Pi4, something strange happened, i download this image from the hub and it doesn't exist.
|
Downloading the correct image the same error occurs when executing the IPFS command, it smells to me that it is the architecture in the CI.
|
@manalejandro Are you able to test an image for v0.19.2 and see if the problem is still there? |
that image works well.
|
If I build the docker image with the latest version it works perfectly, could be some parameter that affects the architecture when building it for image deployment.
|
@manalejandro interesting, how are you building the image? |
Hi, I cross compile the last commit with docker from a x64 machine for the Pi4 arm64 image:
The last commit I tried was 61f8c73 but now it doesn't work with the latest code from github. |
Sorry I'm very rude and didn't look at the Dockerfile arguments, now the last commit works.
|
@manalejandro ack. Just want to confirm: you are building your own image because the upstream one does not work, right? |
Yes, that's the point of my issue. |
same issue |
With docker versions v0.20.0 & v0.21.0 I have the same issue. When building an image on an arm64 device with these versions, a However, when executing This does not happen on versions v0.19.0 and lower. where the same command |
Same issue here. 0.19.1, 0.19.2 work ok. 0.20.0 and 0.21.0 both error out like you packed your arm64 build in a x86 container.
See jesec/flood#451 (comment) for a similar issue. More data:
The above confirms that the chroot is all x86_64 or something... and the ipfs binary itself is arm64. If you're doing some multi-stage built, your final step is using an x86_64/amd64 container to install the arm64 kubo into. |
suspect: 6f08cde Maybe your caching image layers means it's caching x86 layers and not figuring out the arch is different? 3 minutes seems way to quick to pull multiple base images of differing architectures. Also of note: Maybe the target image is getting the default arm64 because BUILDPLATFORM is unset? |
@kallisti5 you're on to something, but it's not the caching that's causing the problem. It's this: --platform=${BUILDPLATFORM:-linux/amd64} It's not because FROM --platform=${TARGETPLATFORM:-linux/amd64} busybox:1.31.1-glibc |
AAH. Yup. I missed that lol. You're compiling on BUILDPLATFORM for TARGETPLATFORM.. so the installed container needs to be TARGETPLATFORM instead of BUILDPLATFORM |
God help me, I am testing this now because I have the same issue on |
Upstream image was fixed by #10021 today. Your options here: |
Thank you, this seems to work as well! (A little off tangent question, where's the ipfs config file created within this image?) |
@deavmi |
Checklist
Installation method
ipfs-desktop
Version
No response
Config
https://hub.docker.com/layers/ipfs/kubo/latest/images/sha256-0b53c782c90a6486ced5411f29085b4aa784723fc75a21ac7223aab0206e1964
Description
Could be one architecture setting?
ipfs | exec /entrypoint.sh: exec format error
The text was updated successfully, but these errors were encountered: