Docker login command not working
I installed boot2docker on my windows machine and created a repository on the docker hub. I am trying to login with the following command in the linux shell:
docker login --username=myusername --password=mypassword --email=myemail@gmail.com
But I get this in the shell:
A password box will appear asking for my password, but when I do and hit enter, nothing happens.
Ideas?
source to share
Update February 2016
PR 19891 "Enable cross-platform logon" should fix the problem
Use the daemon-assigned registry URL to login to docker.
This allows the Windows client interacting with the Linux daemon to correctly use the default registry endpoint instead of the specific Windows.
In commit 19eaa71 (maybe for docker 1.10?)
tyagian reports the following solution in issue 18019 :
Open json config file:
C:\Users\Username\.docker\config.json
It will look like this:
{
"auths": {
"https://index.docker.io/v1/": {
"auth": "<hash value>",
"email": "<email-address>"
}
}
}
Change it to:
{
"auths": {
"https://index.docker.io/v1/": {
"auth": "<hash value>",
"email": "<email-d>"
},
"https://registry-win-tp3.docker.io/v1/": {
"auth": "<hash value>",
"email": "<email-address>"
}
}
}
and then try again:
$ docker push username/image-name
source to share