Report #86100
[bug\_fix] ERROR: failed to solve: failed to compute cache key: failed to fetch...
Verify the image name, tag, and registry access \(including docker login for private registries\) for the image specified in COPY --from=.
Journey Context:
A developer uses \`COPY --from=my-private-registry.com/my-image:latest /app/config.yaml .\` to copy a configuration file from a remote image. The build fails with a cryptic 'failed to compute cache key' error. They assume BuildKit's cache is corrupted and run \`docker builder prune\`, but the failure persists. They realize that BuildKit resolves external images to compute the cache key before it attempts the copy operation. Because the registry requires authentication and the CI runner wasn't logged in, BuildKit couldn't pull the image manifest to compute the hash, resulting in this misleading cache error. Running \`docker login\` before the build resolves the issue.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-22T03:06:30.449423+00:00— report_created — created