我想得到docker login
授权自~/.docker/config.json
文件。
但我看不到auth
我的令牌config.json
文件。
这是我的码头版本。
docker version
Client:
Version: 17.03.1-ce
API version: 1.27
Go version: go1.7.5
Git commit: c6d412e
Built: Tue Mar 28 00:40:02 2017
OS/Arch: darwin/amd64
Server:
Version: 17.03.1-ce
API version: 1.27 (minimum version 1.12)
Go version: go1.7.5
Git commit: c6d412e
Built: Fri Mar 24 00:00:50 2017
OS/Arch: linux/amd64
Experimental: true
当我跑步时cat ~/.docker/config.json
那么我能看到的是
cat .docker/config.json
{
"auths": {
"https://index.docker.io/v1/": {}
},
"credsStore": "osxkeychain"
}%
根据Codeship文档 https://documentation.codeship.com/pro/getting-started/getting-started-part-three/#encrypted-credentials我应该看看
{
"auths": {
"https://index.docker.io/v1/": {
"auth": "auth_key",
"email": "email"
}
}
}
我可以禁止在钥匙串中存储我的身份验证密钥吗?
我真的需要得到auth_key
,我怎样才能得到它?
谢谢
Auth 只是一个 Base64 编码的“用户名:密码”字符串。您可以使用以下命令获取它:
echo -n 'username:password' | base64
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)