您的位置:首页 > 运维架构 > Docker

docker上传镜像报错

2016-06-21 00:00 441 查看
执行指令:docker push chrisforbt/centos7:v1,docker报了如下的错

Do you really want to push to public registry? [y/n]: y
The push refers to a repository [docker.io/chrisforbt/centos7] (len: 1)
4862d8a7f28c: Preparing
unauthorized: authentication required

解决方法:

Change the file which has the login credentials stored the
~/.docker/config.json
from the default generated of

{
"auths": {
"docker.io": {
"auth": "XXXXXXXXXXXXX",
"email": "x.y@gmail.com"
}
}
}

to - Note the change from docker.io -> index.docker.io/v1. That is the change.

{
"auths": {
"https://index.docker.io/v1/": {
"auth": "XXXXXXXXXXXXX",
"email": "x.y@gmail.com"
}
}
}

如上设置解决了我的问题,原帖地址为:http://stackoverflow.com/questions/36663742/docker-unauthorized-authentication-required-upon-push-with-successful-login
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: