执行指令: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