Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/docker/9.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Ssl 在Docker容器中使用主机CA证书_Ssl_Docker - Fatal编程技术网

Ssl 在Docker容器中使用主机CA证书

Ssl 在Docker容器中使用主机CA证书,ssl,docker,Ssl,Docker,对于https访问,我需要将CA证书文件添加到我的Ubuntu主机上的/usr/local/share/CA certificates 当前我的Dockerfile运行wget https…失败,因为证书验证失败 Docker如何使用主机CA证书?或者是否已打开现有的增强功能以允许此操作 我已经通过passthrough挂载使用了CA和SSL证书,但这看起来像是在Dockerfile中尝试的 因此,我的建议是-将CA证书作为Dockerfile的一部分复制到映像中,然后按正常方式继续。或者转到h

对于https访问,我需要将CA证书文件添加到我的Ubuntu主机上的
/usr/local/share/CA certificates

当前我的Dockerfile
运行wget https…
失败,因为证书验证失败


Docker如何使用主机CA证书?或者是否已打开现有的增强功能以允许此操作

我已经通过passthrough挂载使用了CA和SSL证书,但这看起来像是在Dockerfile中尝试的


因此,我的建议是-将CA证书作为Dockerfile的一部分复制到映像中,然后按正常方式继续。或者转到
http
,或者运行
wget--no-check certificate
,如果您对此满意的话

此区域有几个开放的bug: