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

Hi there,
when I try to log into docker hub from the CLI to push and pull the images, I’m getting this error. My os is Ubuntu 18.04 LTS

`Error saving credentials: error storing credentials - err: exit status 1, out: `Error calling StartServiceByName for org.freedesktop.secrets: Timeout was reached``

Setps to reproduce :

  1. docker login
  2. enter username once prompt
  3. enter password once prompt

Solution

apt install pass