从 centos 拉取映像(最新)时出错,需要身份验证



我已经按照这里提到的步骤在 CentOS 6.4 64 位上安装了 docker.io:http://nareshv.blogspot.in/2013/08/installing-dockerio-on-centos-64-64-bit.html

现在我可以启动 docker 守护程序了。当我按如下方式搜索容器时,它给了我结果

 [root@test ~]# docker search tutorial
 Found 8 results matching your query ("tutorial")
 NAME                             DESCRIPTION
 mhubig/echo                      Simple echo loop from the tutorial.
 learn/tutorial
 jbarbier/tutorial1
 mzdaniel/buildbot-tutorial
 kyma/ping                        Ping image from the tutorial.
 ivarvong/redis                   From the redis tutorial. Just redis-server and       telnet on the base image.
 amattn/postgresql-9.3.0          precise base, PostgreSQL 9.3.0 installed w/ default   configuration.  http://amattn.com/2013/09/19/tutorial_postgresql_us...

danlucraft/postgresql Postgresql 9.3,在端口 5432 上,un:docker,pw:docker。从下面的Postgresql示例教程。

但是当我尝试拉一个容器时,它给了我以下错误

[root@test ~]# docker pull learn/tutorial
Pulling repository learn/tutorial
8dbd9e392a96: Error pulling image (latest) from learn/tutorial, Authentication is required.
2013/10/08 02:50:01 Internal server error: 404 trying to fetch remote history for learn/tutorial

如何设置身份验证以及在哪里设置?请帮忙

我遇到了同样的问题,这个答案是我的解决方案。

这是一个时区问题。我在虚拟机上运行 docker,我的主机和来宾时钟具有不同的时区,身份验证失败是由于时钟分歧。一旦我在主机上正确设置了 ntp(硬件时钟设置为 UTC(,这个问题就消失了。

相关内容