#使用dockers登录腾讯云镜像库时报证书错误
[root@localhost ~]# docker login --username=username shjrccr.ccs.tencentyun.com --password 'password'
Error response from daemon: Get https://shjrccr.ccs.tencentyun.com/v1/users/: x509: certificate signed by unknown authority
#将DigiCert_Global_Root_G2.crt证书放入这个目录,浏览器打开上面报错的连接导出证书
[root@localhost ~]# cd /etc/pki/ca-trust/source/anchors/
#更新受信证书
[root@localhost anchors]# update-ca-trust
#重启dockers
[root@localhost anchors]# sudo systemctl restart docker
随记——docker 操作远程镜像库报证书错误
最新推荐文章于 2025-08-05 17:13:28 发布