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
• 16,630 points

edited Sep 20, 2018 by Hannah 220 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
• 42,510 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,880 points
1,843 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
332 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,940 points
228 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
• 42,510 points
3,204 views
0 votes
4 answers