docker-compose using buildkit fails to fetch local images (already existing or build by another service)
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 25/100
- Issue type
- Bug
- Clarity
- Needs clarification
- Activity status
- Stale
- Tech stack
- docker, docker-compose, go
- Domain
- build-system, devops
Research direction
Start with the linked simple reproducer and inspect its docker-compose.yml, Dockerfile.base, and Dockerfile.project. Run the reproducer with BuildKit enabled and trace how the run-app service resolves the image produced by build-app; done means local or sibling-service images are fetched successfully without disabling BuildKit.
Written by the indexing model from the issue text.
Description
docker-compose using buildkit fails to fetch local images (already existing or build by another service).
This bug obviously has been discussed here:
https://github.com/docker/compose/issues/3660
I'm still having the issue and found this thread! I don't think disabling Buildkit is a smart hack if one wants to use buildkit-features like COPY --chmod=a+x
The matter that buildkit obviously breaks this is a bug. Has this been reported to buildkit or is the bug located in docker itself?
example:
services:
build-app:
image: my-app-base
context: .
dockerfile: ./Dockerfile.base
target: base-image
run-app:
image: my-app-project
build:
context: .
dockerfile: ./Dockerfile.project
target: base-image
FROM my-app-base AS my-project-app
Update
A simple reproducer:
https://github.com/Gabriel-Kaufmann/reproducer-docker-compose-buildx-issue
- Dominant language
- Go
- Stars
- 10.3k
- Forks
- 1.5k
- Avg merge
- 1d 23h
- Merged PRs (30d)
- 48
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.
More from moby/buildkit
-
status/triage
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
-
area/dockerfile
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
-
Difficulty 4/5 3-5 days Newbie friendliness 45/100
-
Difficulty 4/5 3-5 days Newbie friendliness 48/100
Similar issues
-
optimization optimization:agents-md-curator
Difficulty 2/5 1-3 hours Newbie friendliness 86/100
githubnext/gh-aw-cao#13143 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
blinklabs-io/bursa#904 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
yanet-platform/ipfw-go#129 ·
-
bug confmap/provider/googlesecretmanagerprovider needs triage
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
open-telemetry/opentelemetry-collector-contrib#51273 · 2 comments ·
-
bug: AI Gateway client filter lists "Unknown" twice when NULL and literal Unknown clients coexist Openbug
Difficulty 2/5 1-3 hours Newbie friendliness 90/100