Buildx node preferences: Docker doesn't appear to be using the configured remote node #1743
Replies: 4 comments 2 replies
-
I meanwhile realized what a kinda sensible way to monitor those Buildx nodes is. However, in order to get Docker to distribute the Buildx builds to the platform nodes as expected (
Why that was necessary I have no idea. When I now start a multi-platform build, I see it running on both nodes - most of the time. However, there are situations when an Arm build is still executed on the local host through QEMU instead of on the Mini as the following screen shot shows. Again, I have no idea why this might be. |
Beta Was this translation helpful? Give feedback.
-
What version of buildx are you using? |
Beta Was this translation helpful? Give feedback.
-
Is there a difference in |
Beta Was this translation helpful? Give feedback.
-
Is there a way I could tell Buildx not to try to be clever when creating nodes in terms of detecting which platforms a node may support? In other words, when I say If I could change the configuration like that, it should stop Buildx from sending jobs to the wrong node. |
Beta Was this translation helpful? Give feedback.
-
This is in many ways strongly related to my unanswered post at https://forums.docker.com/t/docker-buildx-build-which-node-is-used-for-which-platform/135525.
I have a Buildx QEMU setup on a Linux x64 machine to which I added an Arm Mac Mini over SSH. The intention is to build
linux/amd64
on this machine but buildlinux/arm64
on the Mac Mini.From why understand the '*' denotes the preferred or recommended platform for the builder. I set them when I appended the node(s).
Even though I don't have hard evidence yet (-> subject of the forum post) I have strong indication that a Buildx build for platform
linux/arm64
uses the QEMU infrastructure rather than the remote node over SSH. Even with demanding Docker builds the CPU on the Mac Mini shows no indication anything special is happening there.Do I really need https://github.com/tonistiigi/binfmt from @tonistiigi in my case on the "local" machine?
Beta Was this translation helpful? Give feedback.
All reactions