拒绝:请求的对资源的访问被拒绝:泊坞窗 [英] denied: requested access to the resource is denied : docker
问题描述
我正在按照
有人可以给我一些有关此问题的提示吗?
注意:我已经成功登录docker
在docker push之前,您可能需要将docker repo切换为private。
感谢答案由 Dean Wu 和此评论,由 ses ,在推送之前,请记住先注销,然后从命令行登录到您的Docker Hub帐户
#您可能需要先注销`docker logout`参考。 https://stackoverflow.com/a/53835882/248616
docker login
根据文档:
您需要包括Docker Hub的命名空间才能将其与您的帐户相关联。
名称空间与您的Docker Hub帐户名称相同。
您需要将映像重命名为YOUR_DOCKERHUB_NAME / docker-whale。
因此,这意味着您必须先标记图像,然后再进行以下操作:
docker tag firstimage YOUR_DOCKERHUB_NAME / firstimage
,那么您应该可以将其推送。
docker push YOUR_DOCKERHUB_NAME / firstimage
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
You may need to switch your docker repo to private before docker push.
Thanks to the answer provided by Dean Wu and this comment by ses, before pushing, remember to log out, then log in from the command line to your docker hub account
# 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
这篇关于拒绝:请求的对资源的访问被拒绝:泊坞窗的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!