Docker登录阿里云login报错Error saving credentials
登录阿里云提示指令执行:
sudo docker login --username=myAliyunAccount registry.cn-beijing.aliyuncs.com
此时报错完整信息如下:
Error saving credentials: error storing credentials - err: exit status 1, out: `Post "http://ipc/registry/credstore-updated": dial unix backend.sock: connect: no such file or directory`
解决的方法是,找到docker配置文件: C:\Users\xx\.docker 默认在这个目录
~/.docker/config.json
打开文件,并删除掉下面这行即可(稍后登录后会自动更新该属性值):
"credsStore": "desktop"