Docker Error: Error saving credentials: error storing credentials - err: exit status 1, out: `Cannot autolaunch D-Bus without X11 $DISPLAY`
Error saving credentials: error storing credentials - err: exit status 1, out:
Cannot autolaunch D-Bus without X11 $DISPLAY
This error happens on trying to login to docker registry through terminal and its due to the missing of dependent packages.
This article explains the steps to resolve the above error.
Step1: Install the dependent packages.
For Ubuntu / Debian,
#apt-get install pass gnupg2
For Fedora / RHEL,
#yum install pass gnupg2
Step2: Generate gpg2 key.
#gpg2 --gen-key
Step3: Create the password store using the gpg user id.
#pass init GPG
Where GPG need to be replaced with the id generated earlier.
Now its possible to login to docker registry through terminal.
#docker login
That's all…