DOCKER push失敗:denied: requested access to the resource is denied
阿新 • • 發佈:2019-01-06
剛剛入坑,第一次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麻煩死了