gpt4 book ai didi

docker - docker 中的证书错误

转载 作者:行者123 更新时间:2023-12-02 20:24:57 30 4
gpt4 key购买 nike

我在公司防火墙后面,并且已在Ubuntu 14.04 LTS服务器上安装了Docker。遵循http://docs.docker.com/linux/step_one/上的指示。

事情似乎还不错:-

$ docker version
Client:
Version: 1.9.1
API version: 1.21
Go version: go1.4.2
Git commit: a34a1d5
Built: Fri Nov 20 13:12:04 UTC 2015
OS/Arch: linux/amd64

Server:
Version: 1.9.1
API version: 1.21
Go version: go1.4.2
Git commit: a34a1d5
Built: Fri Nov 20 13:12:04 UTC 2015
OS/Arch: linux/amd64

...但是我无法拉出并运行任何图像。例:-
$ docker run hello-world

给出:

Error while pulling image: Get https://index.docker.io/v1/repositories/library/hello-world/images: x509: certificate is valid for FG3K6C3A15800002, not index.docker.io



花了很多时间搜索-我不明白问题是什么-我设置了http_proxy和https_proxy env var,但是不确定下一步该怎么做。该文档没有提到任何证书要求。

任何帮助表示赞赏!

最佳答案

问题可能是代理。如果使用代理访问互联网,则必须更改文件 / etc / default / docker 并将其放置在代理上。

export http_proxy="http://proxy_ip:proxy_port"
export https_proxy="http://proxy_ip:proxy_port"

完成后,重新启动服务:
sudo service docker restart

它对我有用。

关于docker - docker 中的证书错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/33891462/

30 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com