Docker push denied: requested access to the resource is denied

Asking for help? Comment out what you need so we can get more information to help you!

Cluster information:

Kubernetes version: Kubectl: Client Version: 1.18.0 / Server Version 1.18.3
Cloud being used: Minikube
Installation method: local (only one PC)
Host OS: W10
CNI and version:
CRI and version:

After login with:

docker login docker.io

I try to push an image to my private repository and I get the following error:

PS C:\users\dell\kubernetes\golang> docker push manuel1972/repository/nginx
The push refers to repository [docker.io/manuel1972/repository/nginx]
abbd7cab739b: Preparing
de832d8bfd41: Preparing
3d7c8f8d36a5: Preparing
ac078d8f08c6: Preparing
6d196faff4ee: Preparing
ed39597d1556: Waiting
ff73b8119c50: Waiting
d0f104dc0a1f: Waiting
denied: requested access to the resource is denied

However, if I try to do the same in a registry container, it works:

PS C:\users\dell\kubernetes\golang> docker push localhost:5000/nginx
The push refers to repository [localhost:5000/nginx]
abbd7cab739b: Pushed
de832d8bfd41: Pushed
3d7c8f8d36a5: Pushed
ac078d8f08c6: Pushed
6d196faff4ee: Pushed
ed39597d1556: Pushed
ff73b8119c50: Pushed
d0f104dc0a1f: Pushed
latest: digest: sha256:8ce6bb4f3ff0f2cf3f552b8859a38b2ad6f697771d86960b3d673ac02d00f0fb size: 1988

Any suggestions?

Thank you in advance

I think you need to push without registry in the path:

docker push manuel1972/nginx

Kind regards,
Stephen

Hi Stephen,

You are right, it works.

I think there’s been a misunderstanding from my side (I’m new in this world) as when I created a private repository in my Docker Hub account I assumed this name was actually a “folder” inside my account, so I tried to push the image to this “folder”.

Thank you very much for your quick support :slight_smile:

Thanks to Author , who wrote this post. Of the many posts I’ve seen, this one is the most standard. If you want, you can read this post ( Docker denied: requested access to the resource is denied - Kodlogs.net ) as well as another post