相关疑难解决方法(0)

docker unauthorized:需要身份验证 - 成功登录后推送

从我的主机推送docker镜像(成功登录后)时,我收到"未经授权:需要身份验证".

详情如下.

-bash-4.2# docker login --username=asamba --email=anand.sambamoorthy@gmail.com
WARNING: login credentials saved in /root/.docker/config.json
*Login Succeeded*
-bash-4.2#
-bash-4.2# docker push asamba/docker-whale

Do you really want to push to public registry? [y/n]: y
The push refers to a repository [docker.io/asamba/docker-whale] (len: 0)
faa2fa357a0e: Preparing
unauthorized: authentication required
Run Code Online (Sandbox Code Playgroud)
  • Docker版本:1.9.1(客户端和服务器)
  • http://hub.docker.com也创建了回购(asamba/docker-whale).

/ var/log/messages显示403,我不知道这个docker是不是.见下文.

Apr 16 11:39:03 localhost journal: time="2016-04-16T11:39:03.884872524Z" level=info msg="{Action=push, Username=asamba, LoginUID=1001, PID=2125}"
Apr 16 11:39:03 localhost journal: time="2016-04-16T11:39:03.884988574Z" level=error msg="Handler for POST /v1.21/images/asamba/docker-whale/push returned error: Error: Status 403 trying to push …
Run Code Online (Sandbox Code Playgroud)

docker

92
推荐指数
9
解决办法
13万
查看次数

标签 统计

docker ×1