docker pull 报X509错误

场景

docker pull https://test.example.com仓库中的镜像,无法成功,错误为:x509: certificate signed by unknown authority

解决方案

vim /etc/docker/daemon.json

## 添加"insecure-registries"配置
"insecure-registries": ["test.example.com"]

重启docker后再次执行docker pull 即可成功

posted @ 2020-05-29 18:03  Peterer~王勇  阅读(505)  评论(0编辑  收藏  举报