docker - 如何删除 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:
我不知道我能做什么
谁能帮我解决这个问题?
解决方案
删除文件/usr/local/bin/docker-credential-osxkeychain
对我有用。
rm /usr/local/bin/docker-credential-osxkeychain
如果上述方法不起作用,请尝试从中删除该"credsStore": "osxkeychain"
行~/.docker/config.json
推荐阅读
- sql-server - 为什么#TEMP 表没有显示?
- php - 如何修复此错误找不到类“App\link”
- javascript - React 16 钩子在嵌套的 npm 包中不起作用
- python - 是否可以评估函数返回是否在列表中,否则返回默认值?
- laravel - 如何使用 Mailgun 和 Laravel 发送电子邮件?
- r - 插值受另一个变量限制的时间序列数据
- python - SQL(或python)从相似的行中选择一次值
- mysql - 将一行加入Mysql中另一个表中的多行
- java - 如何使用流明通过android将图像文件上传到cloudinary
- python - 我的 Python Dockerfile 中是否需要 apt-get 更新和升级