I am following this link to create my first docker Image and it went successfully and now I am trying to push this Image into my docker repository from this link. But whenever I am trying to push this Image into repository , I got this type of error.
denied: requested access to the resource is denied
Could anyone give me some hint towards this problem ? Any help would appreciated.
Note: I have successfully login into docker
This question is tagged with
~ Asked on 2017-02-01 16:08:53
You may need to switch your docker repo to private before docker push.
# you may need log out first `docker logout` ref. https://stackoverflow.com/a/53835882/248616 docker login
According to the docs:
You need to include the namespace for Docker Hub to associate it with your account. The namespace is the same as your Docker Hub account name. You need to rename the image to YOUR_DOCKERHUB_NAME/docker-whale.
So, this means you have 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
~ Answered on 2017-02-01 16:22:45
I got the same issue while taking the docker beginner Course. I solved the issue by doing a
docker login before the docker push call.
~ Answered on 2017-02-22 22:23:41