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
Long time build with remote node #1539
Comments
Ok, I've noticed something... My
My builder instance before bootstrap:
But bootstrapping adds additional platforms to my
Why is it so? How to keep UPD: oh, |
There's no load on the server during the build process, and
So I think my remote node was just not picked up by the builder. Why? |
Same setup as you and same problem, buildx ignores platform preferences and assigns builds to the first node that supports the platform. It seems to be a problem with buildx version v0.10.0. I fixed it by rolling back to Docker Desktop 4.15.0 with buildx v0.9.1. Everything works fine without reconfiguring the builder and now linux/amd64 builds are done on x86 server. ❯ docker --version Docker version 20.10.21, build baeda1f ❯ docker buildx version github.com/docker/buildx v0.9.1 ed00243a0ce2a0aee75311b06e32d33b44729689 ❯ docker buildx inspect Name: localremote Driver: docker-container Nodes: Name: macmini Endpoint: unix:///var/run/docker.sock Status: running Buildkit: v0.11.1 Platforms: linux/arm64*, linux/riscv64*, linux/ppc64le*, linux/s390x*, linux/mips64le*, linux/mips64*, linux/arm/v7*, linux/arm/v6*, linux/amd64, linux/amd64/v2, linux/386 Name: server Endpoint: ssh://server Status: running Buildkit: v0.11.1 Platforms: linux/amd64*, linux/amd64/v2*, linux/amd64/v3*, linux/386* |
Hi!
I'm trying to set up a multi-arch building but the remote node (for amd64) doesn't speed up my build.
MacBook Pro M1 Max (32GB memory). Docker-desktop 4.16.1 (buildx 0.10.0).
Dockerfile:
There are some other instructions in Dockerfile but it doesn't matter. There's only one really time-consuming action: install-php-extensions - script that installs (compiles) PHP extensions. That step takes most of the building time.
My builder instance:
Building:
docker buildx build --push --platform linux/amd64,linux/arm64 -t local-registry-name:php:8.1.9 .
I see that
arm64
version finishes in ~200s, it's ok. But then I'm waiting foramd64
build ~1200s, in the logs I see that all of this time it's compiling php extensions.If I run
docker buildx build --platform linux/amd64 --no-cache .
on the server itself - the build takes ~202s.To test if I really use a remote node during the building - I broke the ssh connection, the build stuck at the start, and threw me an error, so it means the remote node is really in use.
So I can't get the point of why building on the remote node is so slow (in fact, the same time I'm getting when building
amd64
image with qemu locally on my MacBook).The text was updated successfully, but these errors were encountered: