Error response from daemon: Get "https://xx.xx.xx/v2/": x509: certificate signed by unknown authority

  自建harbor仓库ssl证书过期之后,更换了ssl证书。jenkins流水线无法登录harbor镜像仓库、且无法拉取镜像时报,报错信息如下:Error response from daemon: Get "https://xx.xx.xx/v2/": x509: certificate signed by unknown authority

  让docker信任harbor的CA证书

   mkdir /etc/docker/certs.d/harbor.tqsys.cn -p

   cp ca.crt  /etc/docker/certs.d/harbor.tqsys.cn

  最后重启docker

   systemctl daemon-reload

   systemctl restart docker

posted @ 2022-08-15 13:03  李成敏  阅读(1620)  评论(0编辑  收藏  举报