vico
vico

Reputation: 18221

Docker repository does not exist

Docker reports repository does not exist, but it is not truth

C:\Users\g> docker run prakhar99/static-site
Unable to find image 'prakhar99/static-site:latest' locally
C:\Program Files\Docker\Docker\resources\bin\docker.exe: Error response from daemon: pull access denied for prakhar99/static-site, repository does not exist or may require 'docker login': denied: requested access to the resource is denied.
See 'C:\Program Files\Docker\Docker\resources\bin\docker.exe run --help'.

Why I'm getting this error and how to fix it?

Upvotes: 0

Views: 3039

Answers (2)

Btc Sources
Btc Sources

Reputation: 2061

Docker run needs the image to exist. It's telling you it doesn't. There are three options for it to exist:

  1. To exist on Dockerhub.

This would mean that prakhar99/static-site should be splitted like: prakhar99, the name of the Docker Hub user, and static-site as the name of the image itself.

Since it doesn't exist in DockerHub, this is not what you're looking for.

  1. To exist in your PC, which means that you have executed Docker build with a dockerfile and named it appropriately. Check the docs here.

  2. It would be a different repository instead of the official Docker Hub repo. For example, NVIDIA maintains their own special Docker Repository here. In this case, you would need to add the domain as a prefix, for example:

docker pull nvcr.io/nvidia-hpcvis/paraview-index:5.7.0-egl-pvw

If docker run tells you it doesn't find the image, it is because no one of them finds the image available. Check:

  • If the recipe that you're following doesn't include a Docker build previously to create the image.

  • If you're missing a different repository at the beginning of your run command.

  • For typos in the command.

Upvotes: 1

Ghonima
Ghonima

Reputation: 3092

Checking on docker hub, this user does not exist so the error message you're getting is correct as the repository does not exist.

Upvotes: 2

Related Questions