mac docker desktop 无法docker login ,报错
Error saving credentials: error storing credentials - err: exit status 1, out: `Post "http://ipc/registry/credstore-updated": context deadline exceeded (Client.Timeout exceeded while awaiting headers)`
1.需要把harbor仓库服务器中自签名的 yourdomain.com.crt 文件拷贝到 mac 电脑到 ~/.docker/certs.d/yourdomain.com/ 目录下,再重启docker
2.需要在 /etc/hosts 中配置 ip yourdomain.com 的映射规则
3.需要在 /etc/docker/daemon.json中配置:“insecure-registries”: [ “registry.harbor.com” ]
4.需要删除 ~/.docker/config.json 中的 “credsStore”: “desktop”