【docker push】 denied: requested access to the resource is denied

问题描述

  • 给本地镜像打好tag之后进行推送至远程仓库时出现错误,提示:requested access to the resource is denied,请求的对资源的访问被拒绝。
The push refers to repository [xxx]
1b5b0636c897: Preparing 
9b3452a998ef: Preparing 
6ee04559636e: Preparing 
f86563a0f7e5: Preparing 
a91454f76f54: Preparing 
444c77cef1b4: Waiting 
4f8c5437c856: Waiting 
7322f0d682d8: Waiting 
afcc5619df48: Waiting 
2042cc8bf69b: Waiting 
15c500428d27: Waiting 
2f2a21152433: Waiting 
50fa75f3ea9c: Waiting 
143ba13078b5: Waiting 
3b13feaaefc0: Waiting 
54d3ac6c368e: Waiting 
4e45286ef613: Waiting 
f6ed9fb861b1: Waiting 
9f1f726d18e3: Waiting 
ce241b94e14d: Waiting 
6c39776a30a0: Waiting 
564928686313: Waiting 
6e4300c6b758: Waiting 
ee0ca96d307e: Waiting 
0fdfbbf7aebd: Waiting 
2a3138346faa: Waiting 
2edcec3590a4: Waiting 
denied: requested access to the resource is denied

在这里插入图片描述

解决方案

  • 重新进行login,哪怕你之前已经登录成功过了!
  • docker login --username=[镜像仓库用户名] [仓库地址]
  • 回车后输入password,出现Login Succeeded,代表登录成功
  • 然后重新使用docker push 命令,进行镜像推送
163 docker pull denied: requested access to the resource is denied是一个错误消息,意味着您被拒绝访问资源。根据所提供的引用内容,存在几种可能的原因和解决方法。首先,可能是由于镜像名称未按照正确格式命名导致的错误。请确保镜像名称按照正确的格式命名,并检查是否存在其他拼写错误或语法错误。 其次,您可能没有正确的权限来运行docker push命令或其他docker命令。请确保您作为docker用户具有正确的权限和访问凭据。您可以检查docker hub凭据是否正确,并确保您具有适当的访问权限。 最后,这种错误可能发生在尝试将映像推送到存储库时。在创建docker镜像后,可能会发生此类错误。请确保您已正确配置docker,并且已经遵循了正确的推送步骤。如果问题仍然存在,您可能需要与相关的技术支持或社区寻求进一步的帮助。<span class="em">1</span><span class="em">2</span><span class="em">3</span> #### 引用[.reference_title] - *1* [Docker push报错 :denied: requested access to the resource is denied](https://download.csdn.net/download/weixin_38748740/14042426)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_1"}}] [.reference_item style="max-width: 50%"] - *2* *3* [Docker push时报错:Docker denied: requested access to the resource is denied的解决办法](https://blog.csdn.net/weixin_39589455/article/details/127892838)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_1"}}] [.reference_item style="max-width: 50%"] [ .reference_list ]
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值