Error response from daemon: Get http://xxx.xxx.xxx.xxx:8082/v2/:
Get http://harbor-213:8082/service/token?account=admin&client_id=docker&offline_token=true&service=harbor-registry: net/http: request canceled while
waiting for connection (Client.Timeout exceeded while awaiting headers)
(Client.Timeout exceeded while awaiting headers
解决方法
提示是无法去连接通信域名,经过排查,主机去寻找的域名解析的Ip地址不是本机,
所以判断域名解析问题导致连接失败,修改Hosts文件,将harbor域名添加到解析中,再login就会正常了
vi hosts
xxx.xxx.xxx.xxx harbor-213 #发现解析的主机和实际的主机不同
更改后可用