我如何删除 docker-credential-pass

had*_*dir 3 docker

我遇到了 docker 登录和 pass 的问题,当我找不到这个问题的解决方案时,我决定卸载 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
Run Code Online (Sandbox Code Playgroud)

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:
Run Code Online (Sandbox Code Playgroud)

我不知道我能做什么

谁能帮我解决这个问题?

Ash*_*hok 6

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

rm /usr/local/bin/docker-credential-osxkeychain
Run Code Online (Sandbox Code Playgroud)

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