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

来源:互联网 发布:php证书 编辑:程序博客网 时间:2024/05/17 21:53

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

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

E:\docker\jdk8>docker push ubuntu:16-jdk8The push refers to a repository [docker.io/library/ubuntu]d4bd1dfba68a: Preparing7f7a065d245a: Preparingf96e6b25195f: Preparingc56153825175: Preparingae620432889d: Preparinga2022691bf95: Waitingdenied: requested access to the resource is denied

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

E:\docker\jdk8>docker push xuming9/ubuntu:16-jdk8The 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-jdk8The push refers to a repository [docker.io/xuming9/ubuntu]d4bd1dfba68a: Pushed7f7a065d245a: Mounted from library/ubuntuf96e6b25195f: Mounted from library/ubuntuc56153825175: Mounted from library/ubuntuae620432889d: Mounted from library/ubuntua2022691bf95: Mounted from library/ubuntu16-jdk8: digest: sha256:065c242472be59e0c90d09c8337cb97a0148e2e93b51ea8379bdc6e3419cb181 size: 1570

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



阅读全文
0 0