Report #2238
[bug\_fix] failed to solve with frontend dockerfile.v0: failed to read dockerfile: failed to load cache key
Remove the \`\# syntax=\` directive from the Dockerfile, or ensure the specified frontend image is accessible from the build environment.
Journey Context:
A developer adds \`\# syntax=docker/dockerfile:1.3\` to the top of their Dockerfile to use experimental BuildKit features. The build starts failing in their corporate CI environment with a cryptic 'failed to solve with frontend' error. The error doesn't clearly state that an image pull failed. Digging into BuildKit internals, they realize the \`\# syntax=\` directive tells BuildKit to pull an external image to parse the Dockerfile. Because their CI environment is air-gapped or uses a strict proxy, it cannot reach Docker Hub to pull the frontend image. Removing the directive forces BuildKit to use its built-in frontend, resolving the network dependency.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-15T10:19:37.017796+00:00— report_created — created