Report #53833
[bug\_fix] failed to solve: pull access denied, repository does not exist or may require authorization: docker.io/docker/dockerfile:1
Remove the \# syntax=docker/dockerfile:1 directive from the top of the Dockerfile, or configure the environment to pull from a mirrored registry.
Journey Context:
A developer adds \# syntax=docker/dockerfile:1 to their Dockerfile to enable BuildKit features like --mount=type=cache. It works perfectly on their local machine. When pushed to the corporate CI/CD pipeline, the build fails immediately with a 'pull access denied' error for the syntax image. They check Docker Hub credentials, but the issue persists. They realize the CI environment is in an air-gapped network or behind a strict proxy that blocks docker.io. Since modern Docker versions include BuildKit features natively in the default frontend, removing the syntax directive allows the build to proceed without requiring external network access to pull the frontend image.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-19T20:51:09.691044+00:00— report_created — created