Fix "pull access denied for …, repository does not exist or may require docker login"
Error response from daemon: pull access denied for myapp, repository does not exist or may require 'docker login': denied: requested access to the resource is denied
- Unable to find image 'myapp:latest' locally docker: Error response from daemon: pull access denied for myapp, repository does not exist or may require 'docker login'.
- ✘ web Error pull access denied for myapp, repository does not exist or may require 'docker login'
- Error response from daemon: manifest for node:25-alpine3.10 not found: manifest unknown: manifest unknown
- no matching manifest for linux/arm64/v8 in the manifest list entries
- denied: requested access to the resource is denied
Docker did not find the image locally and could not download it: its name does not exist on the registry, or it is private and you are not logged in. Check the full name (registry/account/image:tag), build the image if it is local (docker build -t myapp .), or log in with docker login.
What this error means
When an image requested by docker run, docker pull or Docker Compose is not on the machine, Docker downloads it from a registry. Without a registry name, that is Docker Hub: myapp becomes docker.io/library/myapp, the namespace reserved for official images. For security reasons, the registry answers the same way whether the repository does not exist or you are not allowed to access it: hence the ambiguous message. The manifest unknown (the repository exists but not that tag) and no matching manifest for linux/arm64 (no build for your CPU) variants belong to the same download step.
Common causes
- Image that only exists locally:
docker compose upordocker run myappon a machine wheredocker buildwas never run, or a Compose service withimage:but nobuild:. - Incomplete or misspelt name: the account (
myaccount/myapp) or registry (ghcr.io/…) is missing, or there is a typo. - Private image without authentication: no
docker login, expired token, or account without read access to the repository. - Tag that does not exist (
manifest unknown): version removed, misspelt, orlatestnever published. - Platform not published (
no matching manifest): the image only exists aslinux/amd64and you are on an Apple silicon Mac or an ARM server.
Step-by-step fix
-
Check the full image name
See whether the image is already local, then query the registry without downloading it. If that command fails too, the name or tag is wrong, or you need to log in.
docker images | grep myapp docker buildx imagetools inspect nginx:1.27-alpine docker buildx imagetools inspect ghcr.io/my-org/myapp:1.4.0 -
Local image: build it before running it
If the image comes from your own
Dockerfile, build it with the same namedocker runuses.docker build -t myapp:latest . docker run --rm -p 8080:80 myapp:latest -
Docker Compose: declare how to build the service
With
build:, Compose builds the image instead of looking for it on Docker Hub, then names it afterimage:. Then rundocker compose up --build.services: web: build: . image: myapp:latest ports: - "8080:80" -
Private image: log in to the right registry
Log in to the registry hosting the image, with an access token rather than your password, passed through standard input so it does not appear in your shell history.
# Docker Hub docker login # GitHub Container Registry (token with read:packages) echo "$CR_PAT" | docker login ghcr.io -u USERNAME --password-stdin # AWS ECR aws ecr get-login-password --region eu-west-3 | docker login --username AWS --password-stdin 123456789012.dkr.ecr.eu-west-3.amazonaws.com docker pull ghcr.io/my-org/myapp:1.4.0 -
"manifest unknown": pick a tag that exists
List the published tags on the repository page (Docker Hub, GitHub Packages) and use a specific version rather than
latest.docker pull node:22-alpine -
"no matching manifest": request another platform
If the image only exists for amd64, force that platform (emulated, so slower on ARM), or build a multi-platform image with
docker buildx.docker pull --platform linux/amd64 vendor/legacy-app:2.1 docker buildx build --platform linux/amd64,linux/arm64 -t ghcr.io/my-org/myapp:1.4.0 --push .
Did this fix work for you?
Confirm it in one click: it will rise for the next developers stuck on the same error.
Keep it from coming back
- Always use full names with a version tag (
ghcr.io/my-org/myapp:1.4.0) in your Compose files and deployments. - Give locally built services both
build:andimage:incompose.yaml, sodocker compose up --buildworks on a fresh machine. - In CI, log in to the registry with a short-lived, read-only token for jobs that only pull.
Frequently asked questions
The image exists on Docker Hub, why the error?
Check the account in the name: myapp means an official image, while a user’s image is written user/myapp. If it is private, docker login with an account that has access is required.
Why does docker push give "denied: requested access to the resource is denied"?
To push, the image must be named with your account or organisation (docker tag myapp myaccount/myapp:1.0) and you must be logged in with write access.
What about Kubernetes?
The same cause produces ErrImagePull then ImagePullBackOff. For a private registry, create a secret with kubectl create secret docker-registry and reference it in imagePullSecrets.
Useful tools for this error
More Docker & DevOps errors
- Fix "permission denied while trying to connect to the Docker daemon socket"
- Fix "Bind for 0.0.0.0:8080 failed: port is already allocated" (Docker)
- Fix "no space left on device" (Docker and Linux)
- Fix "exec format error" in Docker (arm64 / amd64)
- Fix "Cannot connect to the Docker daemon. Is the docker daemon running?"
- Fix "connect() failed (111: Connection refused) while connecting to upstream" (Nginx 502)
- Fix "exited with code 137" (OOMKilled) in Docker and Kubernetes
- Fix "CrashLoopBackOff" / "Back-off restarting failed container" (Kubernetes)