【问题标题】:Error pulling image (latest) from centos, Authentication is required从 centos 拉取图像(最新)时出错,需要身份验证
【发布时间】:2013-10-31 17:21:46
【问题描述】:

我已经按照此处提到的步骤在 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

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

【问题讨论】:

    标签: linux centos containers docker lxc


    【解决方案1】:

    我遇到了同样的问题,this answer 是我的解决方案。

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

    【讨论】:

    • 感谢您的帮助!!
    猜你喜欢
    • 2017-05-07
    • 2012-11-13
    • 1970-01-01
    • 2015-10-10
    • 2016-03-21
    • 2012-12-12
    • 2013-11-11
    • 2011-08-13
    • 1970-01-01
    相关资源
    最近更新 更多