Docker 登录镜像仓库 Error saving credentials: error storing credentials – err: exec: “docker-credential-desktop”: executable file not found in $PATH, out: “
错误
akiraka@iMac-Pro:~/Documents/QuarkPro/quark_pipeline/pkg/agent$ docker login swr.cn-east-2.xxxx.com -u cn-east-2@xxxx -p xxxxx
WARNING! Using --password via the CLI is insecure. Use --password-stdin.
Error saving credentials: error storing credentials - err: exec: "docker-credential-desktop": executable file not found in $PATH, out: ``
方式1
# 查看文件
akiraka@iMac-Pro:~/Documents/$ cat ~/.docker/config.json
{
"auths": {},
"credsStore": "desktop",
"currentContext": "desktop-linux",
"plugins": {
"-x-cli-hints": {
"enabled": "true"
},
"debug": {
"hooks": "exec"
},
"scout": {
"hooks": "pull,buildx build"
}
},
"features": {
"hooks": "true"
}
}
# 删除 "credsStore": "desktop",
# 得到结果
{
"auths": {},
"currentContext": "desktop-linux",
"plugins": {
"-x-cli-hints": {
"enabled": "true"
},
"debug": {
"hooks": "exec"
},
"scout": {
"hooks": "pull,buildx build"
}
},
"features": {
"hooks": "true"
}
}
# 登录
akiraka@iMac-Pro:~/Documents/$ docker login swr.cn-east-2.xxx.com -u cn-east-2@xxxx -p xxxx
WARNING! Using --password via the CLI is insecure. Use --password-stdin.
WARNING! Your password will be stored unencrypted in /Users/akiraka/.docker/config.json.
Configure a credential helper to remove this warning. See
https://docs.docker.com/engine/reference/commandline/login/#credential-stores
Login Succeeded
方式2
# 备份文件重新生成新文件
mv ~/.docker/config.json ~/.docker/config.json_bkp
版权声明:
作者:Akiraka
链接:https://www.akiraka.net/linux/docker/1603.html
来源:Akiraka
文章版权归作者所有,未经允许请勿转载。
THE END
0
二维码
海报
Docker 登录镜像仓库 Error saving credentials: error storing credentials – err: exec: “docker-credential-desktop”: executable file not found in $PATH, out: “
错误
akiraka@iMac-Pro:~/Documents/QuarkPro/quark_pipeline/pkg/agent$ docker login swr.cn-east-2.xxxx.com -u cn-east-2@xxxx -p xxxxx
WARNING! Using -……
文章目录
关闭
共有 0 条评论