首页 > 其他分享 >Docker安装Harbor证书:Error response from daemon: Get "https://xx.xx.xx/v2/": x509: certificate

Docker安装Harbor证书:Error response from daemon: Get "https://xx.xx.xx/v2/": x509: certificate

时间:2022-11-04 11:56:03浏览次数:68  
标签:daemon certificate 证书 harbor authority xx docker

  自建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 -p /etc/docker/certs.d/harbor.tqsys.cn (这里需要根据自己的harbor地址)

   cp ca.crt  /etc/docker/certs.d/harbor.tqsys.cn(这里需要根据自己的harbor地址)

 

  最后重启docker

   systemctl daemon-reload

   systemctl restart docker

 

标签:daemon,certificate,证书,harbor,authority,xx,docker
From: https://www.cnblogs.com/yang5726685/p/16857262.html

相关文章