Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Error saving credentials: error storing credentials - err: no credentials server URL, out: `no credentials server URL` while login into docker

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?

like image 345
Ananta Chandra Das Avatar asked Jan 01 '23 12:01

Ananta Chandra Das


1 Answers

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
like image 123
Fipsi Avatar answered May 16 '23 07:05

Fipsi