Docker Community Forums

Share and learn in the Docker community.

Unable to login via CLI when using Linux containers on Windows 10

Hi everyone,

I just installed docker for the first time and tried to do the “docker run hello-world” which worked fine while using windows containers. As soon as I switch to Linux containers, I am not able to login with the CLI anymore neither am I able to run/install any containers (because I am unauthorized).

When trying to log in I get the following error:

Authenticating with existing credentials...
Login did not succeed, error: Error response from daemon: Get https://registry-1.docker.io/v2/: Get https://auth.docker.io/token?account=MyUserName&client_id=docker&offline_token=true&service=registry.docker.io: unexpected EOF
Login with your Docker ID to push and pull images from Docker Hub. If you don't have a Docker ID, head over to https://hub.docker.com to create one.

If I switch back to windows containers, everything is working again.

Anyone got an idea what could cause this issue?

Thanks for your help.

Regards,

asah