`docker buildx build` got stuck if buildkit container dies
Open
Nobody has claimed this yet.
- Dominant language
- Go
- Stars
- 4.5k
- Forks
- 682
- Avg merge
- 2d 14h
- Merged PRs (30d)
- 29
Description
buildx-0.5.1, moby/buildkit:buildx-stable-1 (be8e8392f56c), Docker version 20.10.5, build 55c4c88 on linux x86_64.
docker buildx build --platform=local -o . git://github.com/docker/buildx- While build is in progress -
docker exec -ti buildx_buildkit_builder-builder0 kill -s QUIT 1wherebuildx_buildkit_builder-builder0is the name of buildkit container docker buildx buildhangs indefinitely
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the hang with docker buildx build --platform=local -o . git://github.com/docker/buildx, then terminate the BuildKit container with the documented docker exec ... kill -s QUIT 1 command. Trace how buildx handles a BuildKit container dying and make the build command terminate instead of hanging indefinitely; verify the original reproduction no longer hangs.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- docker, go
- Domain
- build-system, cli, devops
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100