首页 > 解决方案 > 如何删除 docker-credential-pass

问题描述

我的 docker login 和 pass 有问题,当我找不到解决这个问题的方法时,我决定卸载 pass

我删除了通行证,config.json但是当我想连接 docker hub 时

sudo docker login

使用您的 Docker ID 登录以从 Docker Hub 推送和拉取镜像。如果您没有 Docker ID,请前往https://hub.docker.com创建一个。

Error saving credentials: error storing credentials - err: no credentials server URL, out: no credentials server URL

sudo docker logout

删除登录凭据https://index.docker.io/v1/

WARNING: could not erase credentials:

https://index.docker.io/v1/: error erasing credentials - err: exit status 1, out: pass not initialized: exec: "pass": executable file not found in $PATH:

我不知道我能做什么

谁能帮我解决这个问题?

标签: docker

解决方案


删除文件/usr/local/bin/docker-credential-osxkeychain对我有用。

rm /usr/local/bin/docker-credential-osxkeychain

如果上述方法不起作用,请尝试从中删除该"credsStore": "osxkeychain"~/.docker/config.json


推荐阅读