Mac os docker login : error getting credentials

发布时间 2023-07-06 11:51:23作者: Tank-Li
 #3 [internal] load metadata for harbr2.xx.com/xxx:xx
 #3 ERROR: error getting credentials - err: exit status 1, out: `error getting credentials - err: exit status 1, out: `keychain cannot be accessed because the current session does not allow user interaction. The keychain may be locked; unlock it by running "security -v unlock-keychain ~/Library/Keychains/login.keychain-db" and try again``

1、修改钥匙串的 docker 关键字相关设置,解决访问策略问题, 允许所有应用程序访问。
2、修改 $home/.docker/config.json 的配置,删除 "credsStore": "desktop"

原文连接:
https://github.com/docker/for-mac/issues/2295