error saying denied requested access to the resource is denied when trying to push an image to dockerhub

–1 vote

I tried executing the following command and encountered an error

sudo docker push my-apache2
The push refers to a repository [docker.io/library/my-apache2]
9ca822a18384: Preparing
4913dadb8da4: Preparing
cb187a6f7133: Preparing
13197fce7b91: Preparing
94b0399694b0: Preparing
37c16229e40b: Waiting
83120c5c6d3b: Waiting
8c466bf4ca6f: Waiting
denied: requested access to the resource is denied
Sep 20, 2018 in Docker by Hannah
• 18,520 points

edited Sep 20, 2018 by Hannah 3,474 views

1 answer to this question.

+1 vote
tag the image first and then push it

docker tag my-apache2 YOUR_DOCKERHUB_NAME/my-apache2

and then you should be able to push it.

docker push YOUR_DOCKERHUB_NAME/my-apache2
answered Sep 20, 2018 by Kalgi
• 52,350 points

Related Questions In Docker

0 votes
1 answer

Error while trying to run an image - Docker

This error means that the container tries ...READ MORE

answered Aug 22, 2018 in Docker by Nilesh
• 7,060 points
12,400 views
0 votes
1 answer

Error when trying to start host on Oracle Virtual Box

You have to enable the virtualization technology ...READ MORE

answered Dec 16, 2018 in Docker by Kiyara
3,087 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,735 views
0 votes
5 answers

denied: requested access to the resource is denied : docker

You need to tag your image before ...READ MORE

answered Jul 27, 2018 in Docker by Kalgi
• 52,350 points
15,080 views
0 votes
4 answers
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