denied: requested access to the resource is denied : docker

0 votes

I created my first docker image, now I’m trying to push this image into my docker repo but I’m getting an error

denied: requested access to the resource is denied
Jul 27, 2018 in Docker by Hannah
• 16,220 points

5 answers to this question.

+1 vote

You need to tag your image before pushing

docker tag firstimage YOUR_DOCKERHUB_NAME/firstimage

and then you should be able to push it.

docker push YOUR_DOCKERHUB_NAME/firstimage

also, log in from the command line to your docker hub account

docker login
answered Jul 27, 2018 by Kalgi
• 41,990 points
thanks ! it's working.
Glad to help :)
0 votes

I had the same error. I solved the issue by doing adocker login before the docker push call.

answered Apr 23 by Kunal
0 votes
I had to login before pushing. I don't know how could I forget to log in.
answered Apr 23 by Ishaan
0 votes

Follow these steps:

  1. Go to and sign in as abc
  2. Click on your repository abc/myrepo.
  3. Click on Collaborators.
  4. Add abc as a collaborator.
answered Apr 23 by Vinay
did not work, login is successful, the user is added as a collaborator but still does not work
Is your repo public?
0 votes
Hey this might sound stupid but in my case, I hadn't created a repository itself. Make sure you've created the repository in the first place.
answered Apr 23 by Harsh
Hahah! It's funny how small mistakes can create such a mess in your project.

Related Questions In Docker

0 votes
1 answer

How to run a docker command from inside the container?

You must have come across the /var/run/docker.sock file, ...READ MORE

answered Jun 28, 2018 in Docker by Sophie may
• 9,850 points
0 votes
1 answer
0 votes
1 answer

How to obtain the Docker container's IP address from the host?

This can be done by executing the ...READ MORE

answered Jul 16, 2018 in Docker by Sophie may
• 9,850 points
0 votes
1 answer

Where is the Docker daemon log?

It depends on your OS. Here are ...READ MORE

answered Jul 18, 2018 in Docker by Kalgi
• 2,620 points
0 votes
1 answer
0 votes
1 answer

Deploy Docker Containers from Docker Cloud

To solve this problem, I followed advice ...READ MORE

answered Sep 3, 2018 in AWS by Priyaj
• 56,900 points
+4 votes
4 answers

How To Access a Service on Host From a Docker Container?

Adding to kalgi's answer, You can also ...READ MORE

answered Oct 16, 2018 in Docker by lina
• 8,110 points

edited Oct 16, 2018 by lina 5,245 views