harbor客户端证书问题
自己搭了个harbor来托管private docker image,按照官方的教程非常顺利,最后通过jenkins打包后push docker image 的时候发现证书信任有问题了
Error response from daemon: Get https://harbor.XXX.net/v2/: x509: certificate signed by unknown authority
证书是let's encrypt签发的,问题是系统的ca就是不信任,没办法,还是把证书的ca加到系统里面去吧
签发证书会留下ca.crt,拷贝到/etc/pki/ca-trust/source/anchors
然后运行update-ca-trust extract,
再登录,
docker login harbo.xxx.net -u push
WARNING! Using --password via the CLI is insecure. Use --password-stdin.
Login Succeeded
这样就可以了!