docker / docker/buildx

Build fails with large context over SSH

Open
#485 7 comments 3 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Go
Stars
4.5k
Forks
682
Avg merge
2d 14h
Merged PRs (30d)
29

Description

I have a builder that is setup with SSH, and when building projects with larger contexts I see the following:

#10 [internal] load build context
#10 sha256:1b6ab60be38a09b7ca89d54bee19f0b64482887ff6b887eef34c84ab89671f0d
#10 transferring context: 29.14MB 3.4s
#10 transferring context: 73.51MB 8.5s
#10 transferring context: 73.89MB 15.3s
#10 transferring context: 74.21MB 17.4s done
#10 ERROR: rpc error: code = Canceled desc = grpc: the client connection is closing
------
 > [internal] load build context:
------
error: failed to solve: rpc error: code = Unknown desc = rpc error: code = Canceled desc = grpc: the client connection is closing

Version of buildx is 0.5.1.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

No files or tests are named. Start by reproducing a large-context build through an SSH builder using buildx 0.5.1, then investigate where the gRPC client connection closes during context transfer. Done means the same build completes successfully without the reported cancellation error.

Written by the indexing model from the issue text.

Assessment

Tech stack
docker, go
Domain
build-system, infrastructure
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.