title: Error saving credentials: error storing credentials - err: exit status 1, out: `error getting credentials - err: exit status 1
body: <p>I have Ubuntu 20.04 and I have tried using <code>docker login</code> to log in in terminal, but got:</p>
  <p>docker login
  Login with your Docker ID to push and pull images from Docker Hub. If you don't have a Docker ID, head over to <a href="https://hub.docker.com" rel="nofollow noreferrer">https://hub.docker.com</a> to create one.
  Username: sfelshtyn
  Password:
  Error saving credentials: error storing credentials - err: exit status 1, out: <code>error getting credentials - err: exit status 1, out:</code> no usernames for <a href="https://index.docker.io/v1/%60%60" rel="nofollow noreferrer">https://index.docker.io/v1/``</a></p>
  <p>I read the following sources to solve my problem, but none of them helped:<br />
  <a href="https://github.com/docker/docker-credential-helpers/issues/140" rel="nofollow noreferrer">https://github.com/docker/docker-credential-helpers/issues/140</a><br />
  <a href="https://stackoverflow.com/questions/70322012/docker-push-error-saving-credentials-error-storing-credentials-err-exit-stat">Docker push Error saving credentials: error storing credentials - err: exit status 1, out: `not implemented`</a></p>
  <p>Then I switched to official docker documentation and found that I didn't go through the сredentials management process during docker installation.<br />
  I did a few steps:
  (You can find here: <a href="https://docs.docker.com/desktop/linux/" rel="nofollow noreferrer">https://docs.docker.com/desktop/linux/</a>)</p>
  <ol>
  <li>gpg --generate-key</li>
  <li>...</li>
  </ol>
  <p>After that I tried again <code>docker login</code>. I passed my personal data and it worked for me.
  I solved my issue.</p>