Error response from daemon: Missing client certificate

编程入门 行业动态 更新时间:2024-10-16 00:25:08

Error response from <a href=https://www.elefans.com/category/jswz/34/1768285.html style=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

本文发布于:2024-03-06 08:51:28,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1714894.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:daemon   response   Error   certificate   client

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!