debian:buster docker 图片上没有安装证书?
No installed certificates on debian:buster docker image?
我正在遵循 these 指南,以查找 debian:buster
docker 图像上安装的开箱即用的 ca 证书。
但是发现没有对应信息的文件
▶ docker run -it debian:buster bash
root@0259e94be9c4:/# awk -v cmd='openssl x509 -noout -subject' '
> /BEGIN/{close(cmd)};{print | cmd}' < /etc/ssl/certs/ca-certificates.crt
bash: /etc/ssl/certs/ca-certificates.crt: No such file or directory
root@0259e94be9c4:/#
debian:buster
是否完全没有预安装证书?
包“ca-certificates”未安装在docker映像中您需要首先安装它:
apt-get install -y ca-certificates
然后您可以在 :
中找到证书
/etc/ssl/certs/ca-certificates.crt
我正在遵循 these 指南,以查找 debian:buster
docker 图像上安装的开箱即用的 ca 证书。
但是发现没有对应信息的文件
▶ docker run -it debian:buster bash
root@0259e94be9c4:/# awk -v cmd='openssl x509 -noout -subject' '
> /BEGIN/{close(cmd)};{print | cmd}' < /etc/ssl/certs/ca-certificates.crt
bash: /etc/ssl/certs/ca-certificates.crt: No such file or directory
root@0259e94be9c4:/#
debian:buster
是否完全没有预安装证书?
包“ca-certificates”未安装在docker映像中您需要首先安装它:
apt-get install -y ca-certificates
然后您可以在 :
中找到证书/etc/ssl/certs/ca-certificates.crt