连接到Docker上的服务时的凭据节省错误

发布于 2025-02-07 21:33:53 字数 374 浏览 2 评论 0原文

我在硅芯片MacBook Pro运行MACOS MANTEREY版本12.0.1上,尝试使用sudo docker login ncvr.io尝试连接到NGC服务时发生以下错误。

Error saving credentials: error storing credentials - err: exit status 1, out: `Post "http://ipc/registry/credstore-updated": dial unix /var/root/Library/Containers/com.docker.docker/Data/backend.sock: connect: no such file or directory`

I am on a silicon chip Macbook Pro running macOS Monterey version 12.0.1 and the following error occurs on attempting to connect to the NGC service using sudo docker login ncvr.io.

Error saving credentials: error storing credentials - err: exit status 1, out: `Post "http://ipc/registry/credstore-updated": dial unix /var/root/Library/Containers/com.docker.docker/Data/backend.sock: connect: no such file or directory`

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

晌融 2025-02-14 21:33:54

我发现运行以下操作(假设您已经在命令行上)会有所帮助

mv ~/.docker/config.json ~/.docker/config.json.old
cat ~/.docker/config.json.old | sed /credsStore/d > ~/.docker/config.json
rm ~/.docker/config.json.old

,或者,作为运行脚本的一部分

mv ~/.docker/config.json ~/.docker/config.json.old; cat ~/.docker/config.json.old | sed /credsStore/d > ~/.docker/config.json; rm ~/.docker/config.json.old

I find that running the following (assuming you are already on the command line) helps

mv ~/.docker/config.json ~/.docker/config.json.old
cat ~/.docker/config.json.old | sed /credsStore/d > ~/.docker/config.json
rm ~/.docker/config.json.old

or, all in one go as part of my run script

mv ~/.docker/config.json ~/.docker/config.json.old; cat ~/.docker/config.json.old | sed /credsStore/d > ~/.docker/config.json; rm ~/.docker/config.json.old
孤凫 2025-02-14 21:33:53

您将需要让Docker运行。尝试打开Docker桌面,然后再次尝试登录。

You will need to have docker running. Try opening Docker Desktop and attempt your login again.

风流物 2025-02-14 21:33:53

我遇到了同样的问题,可以通过删除〜/.docker/config.json文件来解决它。最初,它仅包含一个条目是“ Credstore = Desktop”。删除后,尝试再次登录,它更改为“ Osxkeychain”。

来源: https://github.com/docker.com/docker/docker/docker-credential-helpers/issues/issues/issues/issues/issues /213

i had the same issue and could resolve it by deleting the ~/.docker/config.json file. originally it contained only one entry being "credStore=desktop". after deletion, and trying to login again, it changed to "osxkeychain".

source: https://github.com/docker/docker-credential-helpers/issues/213

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文