Ubuntu中Docker Desktop登录凭证设置失败及相关报错求助
Ubuntu下Docker Desktop登录凭证相关命令报错问题
环境信息
- Docker: 23.0.3
- Docker Desktop: 4.18.0
- Docker Engine: 20.10.24
- Ubuntu: 22.04.2
报错详情
执行docker logout等与凭证相关的Docker命令时,报错如下:
Removing login credentials for https://index.docker.io/v1/
WARNING: could not erase credentials:
https://index.docker.io/v1/: error erasing credentials - err: exit status 1, out:error getting credentials - err: exit status 1, out:no usernames for https://index.docker.io/v1/``
执行docker login时,报错:
Error saving credentials: error storing credentials - err: exit status 1, out:
error getting credentials - err: exit status 1, out:no usernames for https://index.docker.io/v1/``
已知情况
在Docker Desktop应用内,点击取消后手动重新点击sign in,通过浏览器可成功登录,确认凭证正确,问题出在配置层面。
已尝试的解决方法
- 删除
~/.docker/config.json后重新登录,无效,auth项已生成加密条目 - 给
~/.docker目录下所有文件和目录设置读取权限,问题仍未解决
恳请各位提供建议或帮助,谢谢!
内容的提问来源于stack exchange,提问作者shadowsandlights
相关产品推荐
相关产品推荐

