问题:
docker login 私有仓库时报错
[01:18:02 root@node ~]#docker login 192.168.4.69
Username: admin
Password:
Error response from daemon: Get https://192.168.4.69/v2/: x509: cannot validate certificate for 192.168.4.69 because it doesn't contain any IP SANs
解决办法:
1、在/etc/docker/daemon.json中添加私有仓库地址
vim /etc/docker/daemon.json
注意每条逗号相隔
2、在/usr/lib/systemd/system/docker.service中添加私有仓库地址
vim /usr/lib/systemd/system/docker.service
找到service,注释后的第一行参数最后添加--insecure-registry 私有仓库地址
3、重启docker.service
[01:31:14 root@ldy-node ~]#systemctl daemon-reload
[01:31:19 root@ldy-node ~]#systemctl restart docker.service
至此再次登录私有仓库
登录成功文章来源:https://www.toymoban.com/news/detail-634702.html
参考资料:docker登录私仓失败cannot validate certificate for 192.168.76.131 because it doesn‘t contain any IP SANs_大树下的西瓜的博客-CSDN博客
↑↑↑真的是我的神文章来源地址https://www.toymoban.com/news/detail-634702.html
到了这里,关于Docker login私有仓库报错:x509: cannot validate certificate for because it doesn‘t contain any IP SANs的文章就介绍完了。如果您还想了解更多内容,请在右上角搜索TOY模板网以前的文章或继续浏览下面的相关文章,希望大家以后多多支持TOY模板网!