CentOS7 Docker x509: certificate signed by unknown authority 解决方案

本机拉本机仓库,那直接把crt证书拉本地,放

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

然后执行

update-ca-trust

然后重启docker,即可。

外部Client的话(docker配置文件根据系统会有不同,自己定位):

vim /etc/docker/daemon.json

添加

{ "insecure-registries":["IP:端口"] }
/etc/init.d/docker restart

相关参考:Add Insecure Registry to Docker


未经允许不得转载:阿藏博客 » CentOS7 Docker x509: certificate signed by unknown authority 解决方案