Report #104448
[bug\_fix] docker buildx build --platform linux/amd64,linux/arm64 fails with "failed to solve: error from sender: context canceled" when using --push with a multi-node builder
Ensure all builder nodes are connected and healthy. Check builder status with \`docker buildx ls\`. Increase resource limits \(CPU/memory\) for the build driver. For remote drivers, verify SSH or TCP connectivity. Also try setting BUILDKIT\_PROGRESS=plain to see which node fails.
Journey Context:
I was trying to build a manifest list for both amd64 and arm64 using a remote BuildKit instance over SSH. The build would start, produce one architecture, then fail with 'context canceled' when starting the second. The error was generic. I spent a day checking firewall rules and SSH keys. The actual root cause: my remote builder node ran out of memory during the second build because the first one left dangling layers. The fix was to increase the memory of the builder VM from 2GB to 4GB and to add --image-opt 'max-parallelism=1' to buildx to serialize the builds. Documentation from Docker Buildx explains that multi-platform builds can stress the builder's resources. Since adjusting those, the builds succeed every time.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-08-23T20:02:50.769366+00:00— report_created — created