"x509: certificate signed by unknown authority"

 

echo -n | openssl s_client -showcerts -connect k8s.gcr.io:443 2>/dev/null | sed -ne '/-BEGIN CERTIFICATE-/,/-END CERTIFICATE-/p' > /etc/ssl/certs/k8s.gcr.io.crt

After that restart the docker service:  systemctl restart docker

reference:

https://github.com/kubernetes/kubernetes/issues/43924

Logo

K8S/Kubernetes社区为您提供最前沿的新闻资讯和知识内容

更多推荐