-
Notifications
You must be signed in to change notification settings - Fork 143
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
balena push selects incorrect image (multiarch images, Docker manifest) #1408
Comments
Link to a related issue in a private GitHub repo (access to balena users only): |
[pdcastro] This issue has attached support thread https://jel.ly.fish/#/support-thread~764598c2-13cf-40f1-bb89-931b61ba587c |
@pdcastro sorry for the noise, but this is a blocker for a project that is suppose to go in production soon so wondering if there has been any development towards fixing this bug. Some update would be greatly appreciated. |
@krasi-georgiev, I'm afraid there hasn't been activity on this issue as far as I am aware. If helpful, note that balena supports Dockerfile templates to allow a single Dockerfile to pull from base images of different architectures: That's how |
Thanks.
I might be wrong, but I think this feature has been in docker since one of the early versions so it is not new. Until recently though it wasn't very easy to push multi arch images and this changed with one of the recent versions which simplifies that process. |
[shaunmulligan] This issue has attached support thread https://jel.ly.fish/#/b6953f28-5fd2-432d-9e52-1813e56652c4 |
it would be useful to get some automated updates from the internal discussions and decisions as well |
[pdcastro] This issue has attached support thread https://jel.ly.fish/73473ac9-0b86-4f3c-a950-279c6ebf9753 |
Has there been any progress with this. I just tried it again with 12.20.0 and I still get
The docker image does have a manifest for arm and when I specify it with the correct SHA it does work as expected.
|
I just tried 12.33.0 and seems to be ok so can close it, will reopen it if still facing issues. |
I think livepush / push to local device ( |
noted, I was using push to cloud |
How about ‘deploy’ for openBalena? If I specify an image from Docker Hub, e.g. linuxserver/bookstack, will it pull the image for the arch it is intending to deploy to (arm 7) or pull for my local env (amd64)? |
still causes a The target is a Jetson Nano and there are arm64 builds inside the multiarch |
@Maggie0002, @compiaffe, thank you for reporting it. I can confirm that multiarch images are still not supported with
Currently (as you will have found by now, sorry for the delay in replying), |
Until the issue is resolved for The following example regards the multiarch telegraf image. [...] the workaround is to append a sha256 digest to the FROM line of your Dockerfile, thus "manually selecting" the base image architecture. To do so, check the different sha256 digest for each available architecture on the Dockerhub page:
Choose one of the Dockerfile FROM lines from the table above, depending on your device type. The sha256 digests above were extracted from the Dockerhub page linked above, by using the dropdown box to select the target architecture. |
@pdcastro thanks for the clarification, looking forward to the fix, but the workaround is clear. |
any updates on this? It would really simplify deployment in one of my projects. |
Any progress on this? This is also important for us. |
@peteretep, @rodmaz, thanks for chasing this. Support for multiarch base images for To reduce confusion, I am going to follow @krasi-georgiev's suggestion and close this particular issue in favour of two other existing issues:
... because this issue was originally reported for
|
As reported in the forums (with thanks!), running
balena push
with a multiarch image hosted in Docker Hub, with a docker-compose file such as the following, results in "exec format error":The problem may not actually be in balena-cli, but rather the cloud builders, but this issue is being created to give more visibility to the issue and keep track of its resolution.
The text was updated successfully, but these errors were encountered: