【问题标题】:authenticationrequired error when trying to pull docker images with Docker CLI尝试使用 Docker CLI 拉取 docker 映像时出现 authenticationrequired 错误
【发布时间】:2018-09-27 13:39:58
【问题描述】:

我正在尝试从 docker hub 中提取一个简单的 hello-world 图像:

docker run hello-world

但我在 Windows 7 上遇到此错误:

Unable to find image 'hello-world:latest' locally
C:\Program Files\Docker Toolbox\docker.exe: Error response from daemon: Get https://registry-1.docker.io/v2/: authenticationrequired.

我尝试了很多不同的方法,但似乎都没有效果:

1 - 我尝试登录,但我得到了同样的错误:

docker login

尝试了我的用户名,我的电子邮件...同样的错误:

Error response from daemon: Get https://registry-1.docker.io/v2/: authenticationrequired

2 - 重新启动 docker 机器,同样的错误。

3 - 多次重新安装 Docker 和 Oracle VirtualBox

4 - 在这里完成所有步骤:https://github.com/docker/kitematic/wiki/Common-Proxy-Issues-&-Fixes

我真的不知道如何解决这个问题了。

【问题讨论】:

  • 你可以尝试在 docker hub 上创建一个登录名,然后使用这些凭据hub.docker.com
  • 我就是这么做的。我可以登录 hub.docker.com,但不能通过 CLI。
  • 试试风筝...
  • 我在使用 Kitematic 时得到了这个:tunneling socket could not be established, cause=getaddrinfo ENOTFOUND 84 84:80

标签: windows docker docker-machine boot2docker docker-for-windows


【解决方案1】:

当我尝试登录到公司代理后面的 docker 时,我遇到了这个问题。你有类似的情况吗?如果是,请查看是否将“https://registry-1.docker.io/v2/”添加到代理的 HTTPS 分析的豁免列表中。

如果您没有使用代理,请检查您是否有任何软件可以进行 HTTPS 分析。有时像 Fiddler 或 Antivirus 这样的软件会这样做。如果您发现类似的内容,请查看是否可以将网址列入白名单

希望对您有所帮助。我很难为我的问题弄清楚这一点

【讨论】:

    猜你喜欢
    • 2020-12-24
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2018-08-09
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2019-03-17
    相关资源
    最近更新 更多