DOCKER push失败:denied: requested access to the resource is denied

刚刚入坑,第一次push镜像失败,

原因1:命令内容无帐号信息

E:\docker\jdk8>docker push ubuntu:16-jdk8
The push refers to a repository [docker.io/library/ubuntu]
d4bd1dfba68a: Preparing
7f7a065d245a: Preparing
f96e6b25195f: Preparing
c56153825175: Preparing
ae620432889d: Preparing
a2022691bf95: Waiting
denied: requested access to the resource is denied

原因2: 本地镜像名无帐号信息

E:\docker\jdk8>docker push xuming9/ubuntu:16-jdk8
The push refers to a repository [docker.io/xuming9/ubuntu]
An image does not exist locally with the tag: xuming9/ubuntu

修改办法,将本地镜像名增加帐号信息

E:\docker\jdk8>docker tag c46fc7b6c818 xuming9/ubuntu:16-jdk8

重新push

E:\docker\jdk8>docker push xuming9/ubuntu:16-jdk8
The push refers to a repository [docker.io/xuming9/ubuntu]
d4bd1dfba68a: Pushed
7f7a065d245a: Mounted from library/ubuntu
f96e6b25195f: Mounted from library/ubuntu
c56153825175: Mounted from library/ubuntu
ae620432889d: Mounted from library/ubuntu
a2022691bf95: Mounted from library/ubuntu
16-jdk8: digest: sha256:065c242472be59e0c90d09c8337cb97a0148e2e93b51ea8379bdc6e3419cb181 size: 1570

tip: 有的网友说是版本太低,别听他们的,害我重装了docker麻烦死了



  • 6
    点赞
  • 4
    收藏
    觉得还不错? 一键收藏
  • 5
    评论
评论 5
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值