一,Docker莫名登录失败, 在登录名与密码正常的前提下
原因:这是由于当初配置阿里云加速器,地址默认变成了如下阿里云的镜像地址
{
"auths": {
"https://y0qd3iq.mirror.aliyuncs.com": {}
},
"HttpHeaders": {
"User-Agent": "Docker-Client/19.03.6 (linux)"
},
"credsStore": "secretservice"
}
解决:删除 ~/.docker/config.json
文件
重新登录后success,并在~/.docker/目录下重新生成config.json
{
"auths": {
"https://index.docker.io/v1/": {
"auth": "NzMxNzgxOTg0Onlhbmc3MzE3ODE5ODQxMDI0"
}
},
"HttpHeaders": {
"User-Agent": "Docker-Client/19.03.6 (linux)"
}
}
二,docker-compse构建报错
docker.credentials.errors.InitializationError: docker-credential-secretservice not installed or not available in PATH
[10861] Failed to execute script docker-compose
解决:同上
rm -f ~/.docker/config.json
完