DOCKER push失败:denied: requested access to the resource is denied
刚刚入坑,第一次push镜像失败,原因1:命令内容无帐号信息E:\docker\jdk8>docker push ubuntu:16-jdk8The push refers to a repository [docker.io/library/ubuntu]d4bd1dfba68a: Preparing7f7a065d245a: Preparingf96e6b25195f: P
·
刚刚入坑,第一次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麻烦死了
更多推荐
已为社区贡献1条内容
所有评论(0)