In fact, it could be related to an issue in your config file.
Open your config.json, if they looks like this:
`
{
"auths": {
"docker.io": {
"auth": "your_encoded_password",
"email": "your_email_address"
}
}
Change the endpoint of the login operations:
{
"auths": {
"https://index.docker.io/v1/": {
"auth": "your_encoded_password",
"email": "your_email_address"
}
}