Docker Community Forums

Share and learn in the Docker community.

Getting error message - requested access to the resource denied

Hi all, I am getting an error message when executed the docker push command

docker push nagarajtrivedi/nagaraj_trivedi1/fake-api:version1.0-latest
The push refers to repository [docker.io/nagarajtrivedi/nagaraj_trivedi1/fake-api]
4e074e564a7a: Preparing
5f70bf18a086: Preparing
7623db26586a: Preparing
a7257ff4ae19: Preparing
1debe0af080b: Preparing
3a669db069a2: Waiting
d0df3aaac661: Waiting
denied: requested access to the resource is denied

Even though I succeeded in tagging the image, making part of the container I got this error
Steps involved

  1. Listed down the docker image with the command
    docker images
    REPOSITORY TAG IMAGE ID CREATED SIZE
    fake-api latest ae0b157047df 16 hours ago 439MB
  2. Tagged with the new repository name
    docker tag fake-api:latest nagarajtrivedi/nagaraj_trivedi1/fake-api:version1.0-latest
    docker images
    REPOSITORY TAG IMAGE ID CREATED SIZE
    fake-api latest ae0b157047df 16 hours ago 439MB
    nagarajtrivedi/nagaraj_trivedi1/fake-api version1.0-latest ae0b157047df 16 hours ago 439MB
  3. After this made it part of the container
    docker container ls
    3f5b760c4fb7 ae0b157047df “build/lwan/lwan” 16 hours ago Up 16 hours k8s_fake-api_fake-api_default_8610d0b0-6609-459d-b4e1-10ecd9d5680d_0

docker container commit 3f5b760c4fb7 fake-api:latest
sha256:f05cc14e05666dcc9ccd05d14b1c828067218cea11561bbafc13df6cf19e2bea

It will be of great help to me if I know what could be the problem.

Thanks
Nagaraj Trivedi