Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

"Error saving credentials" in docker login

I am executing the next command:

docker login

And the result that I get is:

 Error saving credentials: error storing credentials - err: exit status 1, out: 
 `Cannot autolaunch D-Bus without X11 $DISPLAY`

I am using an instance in Oracle Cloud that is:

Canonical-Ubuntu-16.04-2018.06.18-0

I tried fix it tipping the next command:

sudo apt-get install xorg openbox

Any idea about what is happening here??

like image 203
GutiMac Avatar asked Aug 02 '18 15:08

GutiMac


People also ask

Where are Docker credentials saved?

When you log in, the command stores credentials in $HOME/.docker/config.json on Linux or %USERPROFILE%/.docker/config.json on Windows, via the procedure described below.

How do I add credentials to my Docker hub?

In Jenkins you have to add a new credential with your Docker Hub account details. Go to Credentials → Global → Add credentials and fill out the form with your username and password.


1 Answers

This tip works for me (Ubuntu 18.04):

sudo apt update
sudo apt -V install gnupg2 pass
like image 124
Alexey Vazhnov Avatar answered Sep 23 '22 08:09

Alexey Vazhnov