# Balena cloud/cli builder is still not able to interpret image manifests

**URL:** <https://forums.balena.io/t/balena-cloud-cli-builder-is-still-not-able-to-interpret-image-manifests/43203>\
**Category:** balenaOS\
**Created:** [November 10, 2019, 1:16am UTC](https://forums.balena.io/t/balena-cloud-cli-builder-is-still-not-able-to-interpret-image-manifests/43203 "2019-11-10T01:16:10Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![matthewcroughan](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/matthewcroughan/32/9424_2.png) [@matthewcroughan](https://forums.balena.io/u/matthewcroughan)\
**Post date:** [November 10, 2019, 1:16am UTC](https://forums.balena.io/t/balena-cloud-cli-builder-is-still-not-able-to-interpret-image-manifests/43203/1 "2019-11-10T01:16:11Z")

</div>

> [@"Bind mounts are not allowed" how to define volumes and pass templates via docker compose?](https://forums.balena.io/t/bind-mounts-are-not-allowed-how-to-define-volumes-and-pass-templates-via-docker-compose/14450/8):
>
> Sorry for the delay, but thanks for your advice that permitted it to build! It’s exciting seeing the interface for all the different services building and deploying independently. Sadly I’m getting an error on all of my services that I was running into in a prior attempt also: 17.06.19 18:29:27 (-0700) redis standard\_init\_linux.go:207: exec user process caused "exec format error" 17.06.19 18:29:27 (-0700) celeryworker standard\_init\_linux.go:207: exec user process caused "exec format error"…

> [@"Bind mounts are not allowed" how to define volumes and pass templates via docker compose?](https://forums.balena.io/t/bind-mounts-are-not-allowed-how-to-define-volumes-and-pass-templates-via-docker-compose/14450/9):
>
> the issue here is that the balena cloud builder doesn’t yet understand image manifests. If it did, the builder could first see which images exist for the architecture that it runs on, but instead it just downloads the default, which is usually x64.

I’ve just confirmed this for myself, with the same issue as this topic. I thought things would be smooth sailing from here, but since bind mounts are not allowed I’m stuck doing this. Any advice?

It’s worth noting that this wouldn’t be an issue if bind mounts were simply allowed. I’m a bit frustrated.

It’s also worth noting that since this is a problem with the cloud builder, there’s no utility in the platform commercially for this simple task and I’m stuck using local mode/incentivised to use OpenBalena. Am I correct in assuming that this issue wouldn’t exist if I were to set up a builder myself?

Running `balena build --application MyApp` claimed it built it for the arch of the device target, but in fact this did not resolve this issue. So it is not a problem with the Balena cloud builder, it’s a problem with the Balena builder generally.

---

<div class="post-metadata">

**Author:** ![matthewcroughan](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/matthewcroughan/32/9424_2.png) [@matthewcroughan](https://forums.balena.io/u/matthewcroughan)\
**Post date:** [November 10, 2019, 1:52am UTC](https://forums.balena.io/t/balena-cloud-cli-builder-is-still-not-able-to-interpret-image-manifests/43203/2 "2019-11-10T01:52:12Z")

</div>

The only solution I can come up with for this is to have

3 dockerfiles for my targets  
3 differences in those dockerfiles (specific architecture)

I have 4 containers.

So that’s 3 \* 3 \* 4 effort.

This is a problem that needs to be fixed.

---

<div class="post-metadata">

**Author:** ![matthewcroughan](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/matthewcroughan/32/9424_2.png) [@matthewcroughan](https://forums.balena.io/u/matthewcroughan)\
**Post date:** [November 10, 2019, 4:14am UTC](https://forums.balena.io/t/balena-cloud-cli-builder-is-still-not-able-to-interpret-image-manifests/43203/3 "2019-11-10T04:14:18Z")

</div>

I’ve discovered that there is no solution to this problem, and I cannot continue until it is fixed in Balena or Docker.

It’s a shame, considering this all works locally. ☹

> <https://github.com/moby/moby/issues/36552>
>
> Description
> Before the addition of manifests and multiarch docker hub images, a trivial way to specify an architecture was something like ppc64le/ubuntu:xenial....

---

<div class="post-metadata">

**Author:** ![matthewcroughan](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/matthewcroughan/32/9424_2.png) [@matthewcroughan](https://forums.balena.io/u/matthewcroughan)\
**Post date:** [November 10, 2019, 4:28am UTC](https://forums.balena.io/t/balena-cloud-cli-builder-is-still-not-able-to-interpret-image-manifests/43203/4 "2019-11-10T04:28:19Z")

</div>

Alright, I couldn’t sleep til I figured this out. This isn’t documented anywhere in Balena and it should be. It’s barely documented in Docker.

The aforementioned issue has discussion of `FROM --platform` which is an experimental feature. I tried this in my Balena dockerfiles and is has worked. However, this still leaves me with the X \* Y \* Z problem.

X = Amount of containers  
Y = Amount of targets  
Z = Amount of architectures

Especially when docker-compose and moby already figured this out and implemented the manifests. I would really love to see this be automatic as it already is in moby.

It is not stated anywhere in the dockerfile documentation that it is possible to use --platform in the `FROM` directive. But you can.

---

<div class="post-metadata">

**Author:** ![matthewcroughan](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/matthewcroughan/32/9424_2.png) [@matthewcroughan](https://forums.balena.io/u/matthewcroughan)\
**Post date:** [November 10, 2019, 8:25pm UTC](https://forums.balena.io/t/balena-cloud-cli-builder-is-still-not-able-to-interpret-image-manifests/43203/5 "2019-11-10T20:25:27Z")

</div>

I’ve just discovered that the on-device builder does not know what --platform is whereas `balena build` and-or the cloud builder do know what --platform is when put in a `FROM` directive.

This is true at least on BalenaOS Ver 2.35+rev1

This means I must sacrifice local development for the ability to use the cloud builder/local builder.

---

<div class="post-metadata">

**Author:** ![nghiant2710](https://avatars.discourse-cdn.com/v4/letter/n/90db22/32.png) [@nghiant2710](https://forums.balena.io/u/nghiant2710)\
**Post date:** [November 11, 2019, 9:03am UTC](https://forums.balena.io/t/balena-cloud-cli-builder-is-still-not-able-to-interpret-image-manifests/43203/6 "2019-11-11T09:03:26Z")

</div>

Hi @matthewcroughan,

I’m sorry for the inconvenience, this is a known issue to us however we don’t have a specific date when can we have a feature to support it yet. We will let you know when we release it.

For now, I think the best workaround should be having a Dockerfile for each target architecture for your targets as you mentioned above.

---

<div class="post-metadata">

**Author:** ![ntzovanis](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/ntzovanis/32/1150_2.png) [@ntzovanis](https://forums.balena.io/u/ntzovanis)\
**Post date:** [October 25, 2021, 3:15pm UTC](https://forums.balena.io/t/balena-cloud-cli-builder-is-still-not-able-to-interpret-image-manifests/43203/9 "2021-10-25T15:15:45Z")

</div>

Hi there,

We’ve just merged support for multiarch on the builder. Nothing to do on your end, but we just wanted to let you know.

Cheers!
