moby: Failed to use the client credentials store when running headless

With the docker-credential-secretservice Release v0.3.0. under $PATH

docker version

Client:
 Version:      1.11.1
 API version:  1.23
 Go version:   go1.5.4
 Git commit:   5604cbe
 Built:        Tue Apr 26 23:38:55 2016
 OS/Arch:      linux/amd64

Server:
 Version:      1.11.1
 API version:  1.23
 Go version:   go1.5.4
 Git commit:   5604cbe
 Built:        Tue Apr 26 23:38:55 2016
 OS/Arch:      linux/amd64

The config.json

$ cat ~/.docker/config.json 
{
    "credsStore": "secretservice"
}

docker login failed with this error:

$ docker login docker.io
GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name org.freedesktop.secrets was not provided by any .service files

About this issue

  • Original URL
  • State: closed
  • Created 8 years ago
  • Reactions: 2
  • Comments: 25 (16 by maintainers)

Most upvoted comments

I’m encountering this issue w/ Ubuntu 18.04 and 18.05.0-ce

I have updated my above steps based on your answer:

  1. Download docker-credential-pass from https://github.com/docker/docker-credential-helpers/releases
  2. tar -xvf docker-credential-pass.tar.gz
  3. mv docker-credential-pass /usr/bin
  4. You will need to setup docker-credential-pass (following steps are based of https://github.com/docker/docker-credential-helpers/issues/102#issuecomment-388634452) 4.1) install gpg and pass (apt-get install gpg pass) 4.2) gpg --generate-key, enter your information. You should see something like this: pub rsa3072 2018-10-07 [SC] [expires: 2020-10-06] 1234567890ABCDEF1234567890ABCDEF12345678 ^-------------------------------------- Copy this string 4.3) pass init (paste string) 4.4) pass insert docker-credential-helpers/docker-pass-initialized-check and set the next password “pass is initialized” (without quotes). 4.5) pass show docker-credential-helpers/docker-pass-initialized-check. You should see pass is initialized. 4.6) docker-credential-pass list
  5. create a ~/.docker/config.json with: { “credsStore”: “pass” }
  6. docker login should now work

As a temporary fix see this stack overflow:

https://stackoverflow.com/questions/50151833/cannot-login-to-docker-account

Basically you download the docker-credential-secretservice executable, copy it to /usr/bin and create a ~/.docker/config.json file. Try to log in with failure, then delete everything you just created and try logging in again. Worked for me. YMMV

Same here. Ubuntu 18.04 - Docker login gives me the very same error

any news?

Ping @runcom are you still working on an alternative?

The credentials store as is is not suited to this use case, a different version is needed…

we’re actively working to integrate the dbus system service not to rely on an X session using custodia as its backend on headless installation. We just started working on this at RH but it’s another team. I’ll keep you posted as we go forward.