Mac os docker login : error getting credentials

#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” 或者 将值改为"osxkeychain"

第二步的 credsStore 是 docker 的存储身份凭证的设置。osxkeychain 是钥匙串
在这里插入图片描述
原文连接:
https://github.com/docker/for-mac/issues/2295
https://docs.docker.com/engine/reference/commandline/login/
https://www.cnblogs.com/li-gao-wang/p/17531771.html
ps:
但遇到了新的问题,重启 docker 后,还是会恢复这个配置,目前

相关推荐

最近更新

  1. TCP协议是安全的吗?

    2024-01-28 09:04:01       18 阅读
  2. 阿里云服务器执行yum,一直下载docker-ce-stable失败

    2024-01-28 09:04:01       19 阅读
  3. 【Python教程】压缩PDF文件大小

    2024-01-28 09:04:01       19 阅读
  4. 通过文章id递归查询所有评论(xml)

    2024-01-28 09:04:01       20 阅读

热门阅读

  1. python连接activemq

    2024-01-28 09:04:01       34 阅读
  2. 在Vue的模块开发中使用GPT的体验及总结

    2024-01-28 09:04:01       32 阅读
  3. STM32 简易智能家居嵌入式系统设计蓝图

    2024-01-28 09:04:01       28 阅读
  4. 2-1.分支结构之switch语句

    2024-01-28 09:04:01       31 阅读
  5. day34_js

    day34_js

    2024-01-28 09:04:01      28 阅读
  6. CSS transition(过渡效果)详解

    2024-01-28 09:04:01       29 阅读
  7. CCF-CSP 202312-2 因子化简

    2024-01-28 09:04:01       31 阅读
  8. sql server 2008 安装问题

    2024-01-28 09:04:01       29 阅读
  9. DAY32:贪心算法part2、122\55\45

    2024-01-28 09:04:01       40 阅读
  10. kafka-JVM采集器安装

    2024-01-28 09:04:01       35 阅读