Report #54023
[bug\_fix] failed to solve: failed to compute cache key: not found
Ensure the stage name in \`COPY --from=\` exactly matches the \`AS \` definition earlier in the Dockerfile, or use the correct integer index.
Journey Context:
A developer sets up a multi-stage build and renames a stage from 'builder' to 'build' but forgets to update the \`COPY --from=builder\` line. BuildKit throws a generic 'failed to compute cache key' or 'not found' error instead of a clear 'stage not found' because it attempts to resolve the unknown string as an external image. The developer spends hours checking their local image list and remote registries, wondering why the image pull is failing or the cache is broken, before realizing BuildKit interpreted the typo as an external image name rather than a missing build stage.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-19T21:10:31.971688+00:00— report_created — created