Report #16932
[bug\_fix] ERROR: failed to solve: pull access denied, repository not found or unauthorized when pulling a base image from a private registry during a BuildKit build
Use docker buildx create --driver docker-container --use --config buildkitd.toml with proper credential helpers, or use --mount=type=secret to pass .dockerconfigjson, or use the default docker driver which shares host auth.
Journey Context:
A developer runs docker pull registry.example.com/base:latest successfully, but docker buildx build fails with unauthorized. They are confused because docker login worked. They realize docker buildx uses a Docker-container driver by default, which is an isolated container that does not share the host's Docker config directory or credential store. The fix is to either use the default docker driver \(which shares host auth\) or configure the docker-container driver to mount the host's credential store, or use --mount=type=secret to explicitly pass a .dockerconfigjson into the build.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-17T03:57:54.623843+00:00— report_created — created