Report #26592
[bug\_fix] ERROR: failed to solve: pull access denied, repository does not exist or may require authorization
Configure BuildKit to use the host's Docker credential store by ensuring \`credHelpers\` or \`credsStore\` is properly configured in \`~/.docker/config.json\`, or explicitly pass credentials using \`docker buildx build --secret\`.
Journey Context:
A developer successfully runs \`docker pull registry.example.com/base:latest\` using credentials set up via \`docker login\`. However, when they run \`docker build .\` and the Dockerfile contains \`FROM registry.example.com/base:latest\`, the build fails with an authentication error. They are baffled because standard Docker pull works. The rabbit hole leads them to discover that BuildKit runs as a separate daemon and does not always share the same credential store as the legacy Docker builder, especially if using a custom buildx builder instance. The fix works because explicitly configuring the credential store in \`config.json\` \(which BuildKit reads\) or using BuildKit's native secret mounting bridges the auth gap, allowing the BuildKit daemon to authenticate with the private registry.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-17T23:02:08.751999+00:00— report_created — created