docker login:Error saving credentials: error storing credentials
升级 docker for Mac 到 3.1.0 版本后,登陆镜像仓库有如下报错
$ docker login --username=XXXX ccr.ccs.tencentyun.com
Password:
Error saving credentials: error storing credentials - err: exit status 1, out: `error storing credentials - err: exit status 1, out: `User interaction is not allowed.``
1
2
3
2
3
于是删除 ~/.docker/config.json 中的 credsStore 这一行,问题解决。
{
"auths": {
"ccr.ccs.tencentyun.com": {},
"https://index.docker.io/v1/": {}
},
"credsStore": "desktop",
"experimental": "disabled",
"stackOrchestrator": "swarm"
}
1
2
3
4
5
6
7
8
9
2
3
4
5
6
7
8
9
reference
- [1] terry-xiaoyu. Error saving credentials: error storing credentialsopen in new window