Troubleshooting slow Docker login issue: 'Error saving credentials, timeout was reached'

Prev Next

Issue description

When logging into Docker for the first time, Docker takes too long to register your password and displays the following error:

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

Scope

This solution applies to: IVION On-premise

Troubleshooting procedure

  1. Check that ./docker/config.json is available in your home folder (Enable hidden folder)

  2. If ./docker/config.json is not available, use the command below to create it.

    mkdir $HOME/.docker
    echo "{}" > $HOME/.docker/config.json
  3. Then type in this command in the config.json file sudo nano ~/.docker/config.json

    {
      "auths": {
            "docker.navvis.com": {
                "auth": ""
            }
        }
    }
  4. Ctrl X to save 

  5. Login with the username and password into docker with $ sudo docker login docker.navvis.com.