daemon: Missing client certificate"/>
Error response from daemon: Missing client certificate
docker push 出现以下错误
root@lsJdqPY6je:~# docker push yourdomain/library/hello-world:v0.1.0
Error response from daemon: Missing client certificate yourdomain.cert for key yourdomain.key
需要将yourdomain.cert 放在/etc/docker/certs.d/yourdomain/目录下。
- /etc/docker/certs.d/yourdomain/yourdomain.cert
如果你使用的是阿里云或其他厂商的免费的SSL证书,只需要下载根证书,后重名为yourdomain.cert。
如果使用openssl 将pem文件转成crt再转成cert.
openssl x509 -inform PEM -in yourdomain.pem -out yourdomain.crt
openssl x509 -inform PEM -in yourdomain.crt -out yourdomain.cert
- 重启
$ sudo systemctl daemon-reload
$ sudo systemctl restart docker.service
更多推荐
Error response from daemon: Missing client certificate
发布评论