This message was deleted.
# rancher-desktop
a
This message was deleted.
f
Not sure, isn't
arm/v7
as 32-bit platform. It works if you use
linux/arm64/v8
Or just
linux/arm64
q
Copy code
% docker run --platform linux/arm/v8 -it busybox   
exec /bin/sh: exec format error
f
arm64
q
Yes, that works:
Copy code
% docker run --platform linux/arm64/v8 -it busybox     
Unable to find image 'busybox:latest' locally
latest: Pulling from library/busybox
15a8001affa7: Pull complete 
Digest: sha256:6bdd92bf5240be1b5f3bf71324f5e371fe59f0e153b27fa1f1620f78ba16963c
Status: Downloaded newer image for busybox:latest
/ #
But, I don't control the input here. I'm trying to run earthly's tests and they insist on
linux/arm/v7
as one of the things they're testing.
f
Then you need to install the qemu-static handler for it yourself:
Copy code
docker run --privileged --rm tonistiigi/binfmt --install arm
We only install
arm64
on Intel machines, and
amd64
on ARM machines
q
that works:
Copy code
jsoref@jsoref-mbp earthly % docker run --privileged --rm tonistiigi/binfmt --install arm
Unable to find image 'tonistiigi/binfmt:latest' locally
latest: Pulling from tonistiigi/binfmt
6dda554f4baf: Pull complete 
2b0720d7a501: Pull complete 
Digest: sha256:66e11bea77a5ea9d6f0fe79b57cd2b189b5d15b93a2bdb925be22949232e4e55
Status: Downloaded newer image for tonistiigi/binfmt:latest
installing: arm OK
{
  "supported": [
    "linux/arm64",
    "linux/amd64",
    "linux/arm/v7",
    "linux/arm/v6"
  ],
  "emulators": [
    "qemu-arm",
    "qemu-x86_64"
  ]
}
jsoref@jsoref-mbp earthly % docker run --platform linux/arm/v7 -it busybox
Unable to find image 'busybox:latest' locally
latest: Pulling from library/busybox
Digest: sha256:6bdd92bf5240be1b5f3bf71324f5e371fe59f0e153b27fa1f1620f78ba16963c
Status: Downloaded newer image for busybox:latest
/ #
f
You will need to re-run the binfmt installer after each restart, as it is only loaded into memory
q
is it remotely possible for rancher desktop to detect users are trying to run an arm/v7 thing and tell them how to deal w/ this?
f
I don't know. We could look at including the emulator, but where do we draw the line? Include s390x emulator run run mainframe images?
I have to look again, but we didn't include all of them because I think total size would be like another 100MB (for things most users would never need)
q
I'd rather a detection thing that suggests the command than bundling the full set
although if you wanted to add a pane in the settings to let me check a bunch of supplemental platforms, i'd be game for that
f
Hmm, toni's image is just 60MB
The question is if we bundle them, or download on demand. If we have to bundle all the emulators, then we can just as well install them (I think, not sure how much RAM that would waste if they are loaded, but unused)
Please file a Github issue, so we have a record that at least one person asked for it... (and gives others a place to put their 👍 reactions
q
Sigh, I was about to ask if you'd file the issue. But, ok... here goes
f
Thank you!
The advantage of you filing it is that you get notified when we do something with it
q
Yeah yeah. The disadvantage is that my characterization will be much worse 🙂
Anyway, working on it
105 Views