18

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??

2

4 Answers 4

37

This tip works for me (Ubuntu 18.04):

sudo apt update
sudo apt -V install gnupg2 pass
0
6

for me helped this comment https://github.com/docker/compose/issues/6023

don't do apt install docker-compose and if you did, remove it and its dependencies

sudo apt remove docker-compose -y && sudo apt autoremove
1
  • This fix my issue too
    – Angel115
    May 7, 2019 at 9:02
3

Today i had the same issue after installing docker.io and docker-compose on a fresh ubuntu. After reading the link posted by Ryabchenko Alexander i tried the command he posted.

I then found out, if you remove docker-compose and reinstalling it, everything started to work like expected. So my solution to overcome this issue in Ubuntu 18.04:

sudo apt remove docker-compose -y && sudo apt autoremove
sudo apt install docker-compose -y

Please check out the answer of Ryabchenko Alexander for the link and reasons why this issue exist.

-2

Fixed, it was a problem that dinstalling docker-compose some libraries were removed

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.