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

0 votes

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
• 14,080 points

edited Sep 20, 2018 by Hannah 103 views

1 answer to this question.

0 votes
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
• 37,320 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
• 6,900 points
861 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
205 views
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,160 points
98 views
0 votes
5 answers

denied: requested access to the resource is denied : docker

Hey this might sound stupid but in ...READ MORE

answered Apr 23 in Docker by Harsh
1,813 views
0 votes
4 answers