其他分享
首页 > 其他分享> > Error response from daemon: Get "https://xx.xx.xx/v2/": x509: certificate signed by unknow

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

作者:互联网

  自建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

标签:daemon,cn,certificate,证书,harbor,xx,docker
来源: https://www.cnblogs.com/lichengmin/p/16587783.html