Docker:在 CentOS 7 上的代理后面安装 Docker:拉取映像时出错

Docker : Installing Docker behind a proxy on CentOS 7 : Error while pulling image

我正在 CentOS 7 上安装 docker,我遇到了这个问题:

拉取图像时出错:获取 https://index.docker.io/v1/repositories/library/centos/images:x509:由未知授权机构签署的证书

我的配置:

在 /etc/sysconfig/docker 文件下添加代理

http_proxy=http://login:Password!@ <我的域>:<端口>

https_proxy=http://login:Password!@ <我的域>:<端口>

[root@localhost ~]# journalctl -xe

我有这个:

https://registry-1.docker.io/v2/: 由未知权威签署的 x509 证书

所以谁能帮我找到这个问题的解决方案???

我找到了这个问题的解决方案,所以我下载了代理证书而不是我想访问的站点的证书,并将其放在

/etc/pki/ca-trust/source/anchors

然后我执行:update-ca-trust force-enable && update-ca-trust extract

我重新启动 docker ,然后一切正常