buildx: TLS timeout with multiarch builds

When I try to do a multiarch build, I get a TLS timeout error when pulling or pushing. For instance:

[...]
 => => pushing layers                                                                                                                                                                                                                                                    10.3s
------
 > exporting to image:
------
failed to solve: rpc error: code = Unknown desc = failed to do request: Head https://registry-1.docker.io/v2/.../sha256:ea514d8f72c75534dbe7d5ceeda09f786eb5e1d9e35335dcd2f8b5ca4a62259a: net/http: TLS handshake timeout

for the command:

docker buildx build --push --platform linux/386,linux/arm/v7,linux/arm64/v8,linux/amd64,linux/ppc64le -t ... -t ... .

Same happens when pulling. My understanding is that docker tries to pull or push many entities concurrently, and this is too much for my network connection. The timeout is very short, like a few seconds. If I build each arch separately, it succeeds after a few attempts. Is there any way to set a longer timeout or to set a max number of concurrent transfers? Thanks.

About this issue

  • Original URL
  • State: closed
  • Created 6 years ago
  • Reactions: 2
  • Comments: 17 (2 by maintainers)

Commits related to this issue

Most upvoted comments

Closing for housekeeping. Cannot reproduce but let us know if it still happens.