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:

enter image description here

A password box will appear asking for my password, but when I do and hit enter, nothing happens.

Ideas?

+3


source to share


3 answers


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

      

+2


source


Check if the file exists config.json

. Usually this file is located in the directory ~/.docker/

.

try:



cat ~/.docker/config.json

0


source


It looks like this is a known issue:

The second link provides a workaround, but it doesn't work for me.

0


source







All Articles