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
• 18,520 points
15,036 views

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
• 52,350 points
thanks ! it's working.
Glad to help :)
thanks! it's working ...appreciate
0 votes

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

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

Follow these steps:

  1. Go to https://hub.docker.com/ 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, 2019 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 24, 2019 by Harsh
Hahah! It's funny how small mistakes can create such a mess in your project.

Related Questions In Docker

+1 vote
1 answer

Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?

Hi@akhtar, It seems the docker service is not ...READ MORE

answered Dec 24, 2020 in Docker by MD
• 95,460 points
15,514 views
0 votes
0 answers
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
• 10,620 points
3,522 views
+2 votes
1 answer
+2 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
• 58,020 points
2,719 views
+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,220 points

edited Oct 16, 2018 by lina 34,142 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP