0
以下詳細信息未授權:推送我的圖像時需要身份驗證
我登錄docker succeeded;
@ubuntu:~$ docker login
Login with your Docker ID to push and pull images from Docker Hub. If you don't have a Docker ID, head over to https://hub.docker.com to create one.
Username (******):
Password:
Login Succeeded
但是當推然後圖像:
@ubuntu:~$ docker push nodejsubuntu
The push refers to a repository [docker.io/library/nodejsubuntu]
9ce2f4fd17ae: Preparing
0cad5e07ba33: Preparing
48373480614b: Preparing
055757a19384: Preparing
c6f2b330b60c: Preparing
c8a75145fcc4: Waiting
unauthorized: authentication required
泊塢窗版本:
Docker version 1.12.1, build 23cf638`
和我的〜/ .docker /下面config.json:
{
"auths": {
"https://index.docker.io/v1/": {
"auth": "*****"
}
}
}
使用命令:
sudo cat /var/log/syslog | grep docker
我得到的消息:
time="2016-09-14T09:37:36.511442483Z" level=error msg="Attempting next endpoint for push after error: unauthorized: authentication required"
非常感謝much.The的原因是,我創建了錯誤的圖像名稱,不與/nodejsubuntu,只有nodejsubuntu。 –
joey
我從過去24小時一直拉我的頭髮,這解決了問題。 – Nagri