Docker Community Forums

Share and learn in the Docker community.

Possible to make 'docker login' command ignore installed credential helper?

docker

(Christian Eriksson) #1

I’m working with a remote system where the only installed credential helper for docker login is the docker-credential-secretservice. I don’t have permissions to uninstall the helper, is there a way to make the docker login command ignore this credential helper and store the credentials in the config.json file?

The system is headless so using the GUI based helper crashes the login command, with:

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

I’ve tried to start the command by specifying a path to the config, using the --config flag and I’ve also tried to create a *.json with an empty credStore property as such:

{
  "credStore": ""
}

but no success, any suggestions?