Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save yicr/44994747271521c3cc359811bf3e9bf0 to your computer and use it in GitHub Desktop.
Save yicr/44994747271521c3cc359811bf3e9bf0 to your computer and use it in GitHub Desktop.
Error saving credentials: error storing credentials - err: exit status 1, out: `Cannot autolaunch D-Bus without X11 $DISPLAY`
$ docker login -u USERNAME -p PASSWORD registry.example.com
WARNING! Using --password via the CLI is insecure. Use --password-stdin.
Error saving credentials: error storing credentials - err: exit status 1, out: `Cannot autolaunch D-Bus without X11 $DISPLAY`
$ sudo apt install gnupg2 pass
$ docker login -u USERNAME -p PASSWORD registry.example.com
WARNING! Using --password via the CLI is insecure. Use --password-stdin.
WARNING! Your password will be stored unencrypted in /home/USER/.docker/config.json.
Configure a credential helper to remove this warning. See
https://docs.docker.com/engine/reference/commandline/login/#credentials-store

Login Succeeded

fail

sudo apt-get remove golang-docker-credential-helpers

this is required docker-compose package!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment