2
votes

While login into docker account through I'm getting below error. The login is working fine in browser.

docker login

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.

Username: ********

Password:

After putting my password I'm getting below error in the terminal

Error saving credentials: error storing credentials - err: no credentials server URL, out: no credentials server URL

Can somebody please help?

2
Check if your docker daemon is running - Wander3r
@Wander3r It was not running though. I simply renamed docker-credential-osxkeychain and login worked after that. - Ananta Chandra Das

2 Answers

6
votes

Late to the party but I solved this issue:

TL;DR

run sudo apt install -y gnupg2 pass and try again


Issue

When running docker logout I got the following error message:

error getting credentials - err: exit status 1, out: Cannot autolaunch D-Bus without X11 $DISPLAY

Which led me to this StackOverflow post


Solution

The solution is to install some X11 tools and try again logging in:

sudo apt install -y gnupg2 pass
docker logout
docker login
1
votes

Simply remove docker-credential-osxkeychain file present in /usr/local/bin/ directory.

I renamed that file and it worked.

mv docker-credential-osxkeychain docker-credential-osxkeychain-backup

docker login

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.

Username: ******

Password:

WARNING! Your password will be stored unencrypted in /Users/******/.docker/config.json. Configure a credential helper to remove this warning. See https://docs.docker.com/engine/reference/commandline/login/#credentials-store

Login Succeeded