Report #70124
[bug\_fix] failed to solve: stage "" not found
Make sure the value in \`COPY --from=\` exactly matches an earlier \`FROM ... AS \` stage \(case-sensitive\), or supply a fully-qualified external image reference. Check for typos and avoid reusing a stage name after it has been overwritten.
Journey Context:
In a multi-stage Dockerfile you write \`FROM golang:1.22 AS builder ... FROM scratch AS runtime COPY --from=bulder /app/bin /app/bin\`. BuildKit stops with "stage bulder not found". You stare at the COPY line, then scroll up and realize the stage is \`AS builder\`, not \`bulder\`. BuildKit's LLB solver resolves \`COPY --from=\` to a vertex in the build graph or to an external image reference; if the string does not match any defined stage and is not a valid image reference, solve fails before any layer runs. The fix is simply to align the names exactly.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-21T00:17:07.050921+00:00— report_created — created