Parallel image loads from docker compose build fail with "No such file or directory (os error 2)"
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 22/100
Research direction
The failure is in the image-load path when several BuildKit tarballs are sent to the engine at once, so the relevant code is in the Rust runtime's image import and tarball handling, not in the Compose side. Reproduce with a project of many services sharing one Dockerfile and look for a temporary file that is removed or not yet written when the parallel load reads it. Done means parallel loads of all services succeed in one run, with a test that exercises concurrent imports.
Written by the indexing model from the issue text.
Description
Summary
When docker compose build builds many images in parallel, BuildKit sends all the image tarballs to the engine at about the same time. One of the loads fails with:
ERROR: rpc error: code = Unknown desc = Error response from daemon: No such file or directory (os error 2)
Building the same services one at a time (docker compose build <service> in a loop) succeeds every time.
Environment
- Kiri 0.2.1 (engine 27.5.1, API 1.47), macOS 26.4, Apple silicon (arm64)
- Docker CLI 29.9.2, Docker Compose 5.6.1, buildx 0.38.1
Steps to reproduce
- Use a Compose project with about 13 services that each build their own image (most share one Dockerfile).
- Run
docker compose build(parallel build, default settings).
What happens
- All 13 images reach
exporting to docker image format→sending tarballtogether (each takes about 30 s). - One of them (a different service on different runs) fails with the error above, and the build stops.
- Setting
COMPOSE_BAKE=falseorCOMPOSE_PARALLEL_LIMITdid not help.
Build log excerpt:
#53 [audio-worker] exporting to docker image format
#53 exporting layers 13.2s done
#53 exporting manifest sha256:abbfa98b... 0.0s done
#53 exporting config sha256:73a2dec5... 0.1s done
#53 sending tarball 30.5s done
#53 ERROR: rpc error: code = Unknown desc = Error response from daemon: No such file or directory (os error 2)
target audio-worker: failed to solve: rpc error: code = Unknown desc = Error response from daemon: No such file or directory (os error 2)
Expected
Parallel image loads succeed, as they do when the images are loaded one at a time.
Workaround
Build services one by one: for s in $(docker compose config --services); do docker compose build "$s"; done
- Dominant language
- Rust
- Stars
- 7.5k
- Forks
- 329
- Avg merge
- 15h 49m
- Merged PRs (30d)
- 241
Getting set up
This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.
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.
More from libracoder/kiri
-
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
libracoder/kiri#749 ·
Maintainers usually reply within 1 day
-
bench/api.sh exec test fails with curl exit 52, and --ignore-failure still records the timingsPossibly taken @Urdemonlord claimed this 1 day ago. Openbug
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
libracoder/kiri#669 · 3 comments ·
Maintainers usually reply within 1 day
-
bug
Difficulty 4/5 3-5 days Newbie friendliness 30/100
libracoder/kiri#754 ·
Maintainers usually reply within 1 day
-
Feature: `--json` for Kiri's own commands (domains, k8s status, machine list, usb list, registry)Open
Difficulty 3/5 1-2 days Newbie friendliness 42/100
libracoder/kiri#748 · 1 comment ·
Maintainers usually reply within 1 day
-
Difficulty 5/5 Over a week Newbie friendliness 25/100
libracoder/kiri#747 · 1 comment ·
Maintainers usually reply within 1 day
Similar issues
-
[Windows] Hidden title bar: a maximized window restored from minimized on a secondary monitor gets the primary monitor's work area as its client areaPossibly taken @lijy91 claimed this today. Open
Difficulty 2/5 1-3 hours Newbie friendliness 67/100
libnativeapi/nativeapi#53 · 1 reaction ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Maintainers usually reply within 1 day
-
area:mcp enhancement large-monorepo v0.34.1
Difficulty 2/5 1-3 hours Newbie friendliness 66/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 80/100
awxkee/yuvutils-rs#149 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
Maintainers usually reply within 1 day