未经授权:推送我的图像时需要validation

下面的细节

我logindocker成功了;

@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版本:

 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" 

你需要推送到你的名字空间。 您正尝试推送到您无权执行的根名称空间:

 docker push <your-username>/nodejsubuntu 

例如:

 docker push sethvargo/nodejsubuntu