Error on Docker push "denied: requested access to the resource is denied"

Hi all,

I am experiencing strange issue when doing docker push.

I am getting below error
"denied: requested access to the resource is denied"

This is not the first time I am doing a docker push. Last month I was able to do a push.

I canme across multiple issues similar to this is stackoverflow and tried their suggestions but couldn’t resolve this.

I have attached daemon logs as well. Can anyone please let me know what is going wrong. Is it an issue with new docker version?

Daemon logs

Aug 15 10:02:40 ln228tvmdp07 dockerd[40449]: time=“2017-08-15T10:02:40.886973000+10:00” level=debug msg="Calling GET /_ping"
Aug 15 10:02:40 ln228tvmdp07 dockerd[40449]: time=“2017-08-15T10:02:40.887518100+10:00” level=debug msg="Calling GET /v1.27/info"
Aug 15 10:02:40 ln228tvmdp07 dockerd[40449]: time=“2017-08-15T10:02:40.893846700+10:00” level=debug msg="Calling POST /v1.27/images/vishnuvpotti/test/push?tag="
Aug 15 10:02:40 ln228tvmdp07 dockerd[40449]: time=“2017-08-15T10:02:40.893969800+10:00” level=debug msg="Trying to push docker.io/vishnuvpotti/test to https://registry-1.docker.io v2"
Aug 15 10:02:41 ln228tvmdp07 dockerd[40449]: time=“2017-08-15T10:02:41.863929300+10:00” level=debug msg="Pushing repository: vishnuvpotti/test:latest"
Aug 15 10:02:41 ln228tvmdp07 dockerd[40449]: time=“2017-08-15T10:02:41.864814900+10:00” level=debug msg="Pushing layer: sha256:5f70bf18a086007016e948b04aed3b82103a36bea41755b6cddfaf10ace3c6ef"
Aug 15 10:02:41 ln228tvmdp07 dockerd[40449]: time=“2017-08-15T10:02:41.865066700+10:00” level=debug msg="Pushing layer: sha256:defd90aaa156603d9362f29909f6f5539df841b6398b3836a5d559066295ec2b"
Aug 15 10:02:41 ln228tvmdp07 dockerd[40449]: time=“2017-08-15T10:02:41.865155500+10:00” level=debug msg="Pushing layer: sha256:be4ee57de94e9c212ac27cf3b2f7ec826617a622d1e10f5b28558cce1f71ec24"
Aug 15 10:02:41 ln228tvmdp07 dockerd[40449]: time=“2017-08-15T10:02:41.865233700+10:00” level=debug msg="Pushing layer: sha256:f971a434fe54442b68fe4d8bb9dc58cc51bfef3d960985fd1d2243a36abe89c2"
Aug 15 10:02:41 ln228tvmdp07 dockerd[40449]: time=“2017-08-15T10:02:41.865308500+10:00” level=debug msg="Pushing layer: sha256:68078adbc0cb48954d27352b190afc2b011b3bb3c2adf61c45991669ea02134e"
Aug 15 10:02:43 ln228tvmdp07 dockerd[40449]: time=“2017-08-15T10:02:43.691569600+10:00” level=error msg="Upload failed: denied: requested access to the resource is denied"
Aug 15 10:02:43 ln228tvmdp07 dockerd[40449]: time=“2017-08-15T10:02:43.691661000+10:00” level=debug msg="Pushing layer: sha256:fb479b796fe5e208adece47fc14092d57c43b1dc0978ddd6a645cbdc7e85bbff"
Aug 15 10:02:43 ln228tvmdp07 dockerd[40449]: time=“2017-08-15T10:02:43.694653100+10:00” level=error msg="Upload failed: denied: requested access to the resource is denied"
Aug 15 10:02:43 ln228tvmdp07 dockerd[40449]: time=“2017-08-15T10:02:43.694753300+10:00” level=debug msg="Pushing layer: sha256:f32dba9a1eadb592cceb96d7b3fdc4a1c5213044fd7b30ae41e17673ccdf385d"
Aug 15 10:02:43 ln228tvmdp07 dockerd[40449]: time=“2017-08-15T10:02:43.694875200+10:00” level=error msg="Attempting next endpoint for push after error: denied: requested access to the resource is denied"
Aug 15 10:02:43 ln228tvmdp07 dockerd[40449]: time=“2017-08-15T10:02:43.699788800+10:00” level=debug msg="Pushing layer: sha256:19cbee8a76396ae7b80f835da4be7229dc8b094535ebf50d35ab2bf941039f7a"
Aug 15 10:02:43 ln228tvmdp07 dockerd[40449]: time=“2017-08-15T10:02:43.701883600+10:00” level=debug msg="Pushing layer: sha256:5a29dcc5d0b483d880a4736853253433c16103b9e03f9f52e94577cf1895563b"
Aug 15 10:02:43 ln228tvmdp07 dockerd[40449]: time=“2017-08-15T10:02:43.707591200+10:00” level=debug msg="Pushing layer: sha256:92f9849bf0840ff917901665d775da4454d84a23439ef2ccbb93c6cc3363ab82"
Aug 15 10:02:44 ln228tvmdp07 dockerd[40449]: time=“2017-08-15T10:02:44.588052200+10:00” level=debug msg=“Pushing layer: sha256:74351e413c54d36337dff701c3568dc291f45523fe74261281b9ec9372528092”

Docker version

root@testmachine# docker version
Client:
Version: 17.03.2-ce
API version: 1.27
Go version: go1.7.5
Git commit: f5ec1e2
Built: Tue Jun 27 02:21:36 2017
OS/Arch: linux/amd64

Server:
Version: 17.03.2-ce
API version: 1.27 (minimum version 1.12)
Go version: go1.7.5
Git commit: f5ec1e2
Built: Tue Jun 27 02:21:36 2017
OS/Arch: linux/amd64
Experimental: false

Note:

  1. I have checked my repo settings in docker hub and Default Repository Visibility is public.
  2. I deleted ~/.docker/config.json, restarted docker and tried.
  3. I also tried docker login -u myusername