I am following this link to create my first docker Image and it went successfully and now I am trying to push this Image into my docker repository from this link. But whenever I am trying to push this Image into repository , I got this type of error.
denied: requested access to the resource is denied
Could anyone give me some hint towards this problem ? Any help would appreciated.
Note: I have successfully login into docker
According to the docs:
So, this means you have to tag your image before pushing:
and then you should be able to push it.
Update: see also the answer from provided by Dean Wu. Before pushing, remember to log in from the command line to your docker hub account
docker login from the command prompt did not work. I kept getting "requested access to the resource is denied" when trying to push.
After signing in to the docker for windows app itself, docker push worked just fine. Hope this helps someone.
So, incase it is helpful to anyone...
I had this same issue and here is what my issue and the FIX was.
Then I was trying to push an image to galaxy from a laptop on the network so I did this:
This would give me an error that would say:
Oddly the fix to this issue was to do a login like this:
That resulted in a successful login.
So then I tried to push the image from my laptop to 'galaxy'.
I had already created a tag for my image that looked like this:
So I tried to push it doing this:
To which I got the reply:
Oddly enough I discovered the fix for this was to first tag the image as follows:
... and then do the push like this:
So for some reason I had to include the port in the tag as a required part of the repository name.
Hope this helps others.
I had the same issue today. The only thing that worked for me was to explicitly login to "docker.io":
docker login docker.io
I tried various other names, and the login would appear to work, but it would later result in a "requested access to the resource is denied" error.
Important also to note is that when you tag your image, you tag it using the Namespace and then your repository / mydevrepo. This confused me when following the Docker docs. After that I used:
And then I pushed my Image using the 'tagged name'.
After docker login, you need name your image with prefix.
e.g. if your username in docker-hub is
Shah
, the image should be: