harbor服务器:192.168.236.101
在另一台安装docker的机器(192.168.236.102)上登录harbor服务器
报错
[root@localhost 192.168.236.101]# docker login 192.168.236.101
Username: admin
Password:
Error response from daemon: Get "https://192.168.236.101/v2/": tls: failed to verify certificate: x509: cannot validate certificate for 192.168.236.101 because it doesn't contain any IP SANs
解决办法
[root@localhost ~]# cat /etc/docker/daemon.json
{
"insecure-registries" : [ "harbor.linux.com" ]
}
在本地要解析一下这个地址