What this thread does
pull access denied for %s, repository does not exist or may require 'docker login'
Docker cannot download the requested repository image.
Do first: run docker login for Docker Hub, or docker login registry.example.com with your actual registry host for a private registry, then retry the same image reference.
Evidence status: official sources distinguish authentication from denied access; public reports show that login can succeed while pulls still fail, and no universal fix is established or tested here (checked 2026-10-28).
Not for: Docker pull quotas; see docker-multi-platform-buildx-pull-limit-wsl-engine-error-cluster; missing platform manifests; see docker-build-cache-key-manifest-dockerfile-apt-errors.
How to diagnose and retry
1. Read the registry host and repository in the failing image reference. Docker documents the command as docker login [OPTIONS] [SERVER]; authenticate to that host. Its current Hub flow uses browser device authentication by default. Docker login (checked 2026-10-28). 2. Untested experiment: after the matching registry login, retry docker image pull with the original image reference as its argument. Check that the same repository and tag or digest downloads successfully; if it fails, compare the final registry response. Pull reference (checked 2026-10-28). 3. If the response contains authentication required (UNAUTHORIZED), investigate authentication. If it contains requested access to the resource is denied (DENIED), investigate permission for that operation and repository. These are the registry messages for distinct codes, not proof of one shared cause. Registry error definitions (checked 2026-10-28). 4. For GitLab token-based pulls, check that the token has read_registry, or the documented fine-grained Container Repository: Read permission. Repository read access alone is not the same permission. Untested experiment: if the required pull permission is missing, obtain an appropriately scoped token, authenticate to that registry, then retry the identical image reference and check that it downloads. GitLab registry authentication (checked 2026-10-28). 5. If access is still denied, ask the image owner to confirm the exact repository and your pull entitlement. That is a diagnostic follow-up, not evidence that the repository is absent. Do not keep replacing credentials without narrowing the response.
Diagnostic: pull access denied
The opening line, pull access denied for %s, repository does not exist or may require 'docker login', is Moby's format string; %s stands for the repository name. The daemon can append the registry's error. Moby emits this wrapper for a DENIED response, so its login hint does not establish that bad authentication caused every instance. Moby pull-error code (checked 2026-10-28).
What the sources establish
| Response | Established meaning | Next decision |
|---|---|---|
| UNAUTHORIZED | The registry could not authenticate the client | Check the relevant registry sign-in |
| DENIED | Access to the requested operation was denied | Confirm repository permission |
| Repository does not exist or may require login | A daemon wrapper containing alternatives | Do not infer repository existence from this text alone |
The table follows the linked registry definitions and Moby code; it does not identify the cause of a particular user's denial (checked 2026-10-28).
Public evidence
- theBigGron, credential-helpers issue #158, 2020-02-23 (checked 2026-10-28): “Login successful, pull access denied.” The commenter reported a GitLab registry-scope mismatch. This is one reported case, with current scope guidance corroborated by GitLab's docs above.
- uoov200-pixel, Docker issue #14935, 2025-09-19 (checked 2026-10-28): “a persistent "pull access denied" error”. The author reports failures after successful browser and token login; the report gives inconsistent setup descriptions. This supports the symptom, not their proposed daemon diagnosis or a verified remedy.
What to test
Retry the same repository and tag after authentication. A successful sign-in alone is insufficient; success means that image pulls. Compare the final registry response if it still fails. Do not infer that an unrelated public-image pull proves access to a private repository.
Pitfalls
Treating every denial as an incorrect password; authenticating to a different registry; using a GitLab repository-read token for image pulls; assuming that a login hint proves the image exists. These checks do not require deleting stored credentials or reinstalling Docker.
A prompt to give your agent
Read the linked Docker login, pull and registry error definitions before reasoning from memory. For this exact image reference and redacted error, separate UNAUTHORIZED from DENIED. Label the matching registry login and identical pull retry “Untested experiment”; check that the requested image downloads, not just that login succeeds. If GitLab is involved, read its current registry permission table. Do not request token values or inspect credential contents. If login succeeds and pull fails, state what remains unestablished rather than inventing a fix.
Limits
No image pull or authentication flow was tested. The error wrapper was checked in Moby's moving master branch, not every released Docker build (checked 2026-10-28). The sources do not establish a general cause or fix for a wrong or nonexistent repository name. Public reports are individual cases and do not establish failure frequency.
Started from a post by @theBigGron, packaged by the editor. Original post