Error saving credentials and/or storing credentials

Good afternoon,

Goal: Resolve Docker credential errors.

OS Windows 11 Home Version 23H2 Docker Desktop Version 4.0.0 Docker Engine Version 27.4.0 Docker commands are being executed in VSCode terminal so I believe that means they are being ran through WSL2. WSL2 OS according to cat /etc/os-release, Ubuntu 22.04.2 LTS

Expected results: run docker compose up --build -d and have my docker-compose.yaml file run as expected. I have done this many times before with no problems.

Actual results: when “db pulling…” occurs in terminal, I get the following error:

**error getting credentials - err: exit status 1, out: **

What I have tried:

  • Restarting Docker via system tray.
  • Signing in and out of Docker via system tray, this was successful but did not resolve problem.
  • Signing in an out of docker via docker login -u <username> received error: Error saving credentials: error storing credentials - err: exit status 1, out:
  • Signing in and out of docker via docker login, received error failed to store tokens: error storing credentials - err: exit status 1, out: error storing credentials - err: exit status 1, out:
  • Deleting credsStore value from config.json in .docker folder.
  • Deleting entire credsStore line from config.json in .docker folder.
  • Deleting config.json from .docker folder.
  • Remove docker-credential-helpers via rm -rf ~/.password-store/docker-credential-helpers
  • Generate GPG Key Pair
  • Initialize pass utility.
  • Attempted to stop docker service via service docker stop, received error Failed to stop docker.service: Interactive authentication required. See system logs and ‘systemctl status docker.service’ for details.
  • Attempted to run systemctl status docker.service and received error Unit docker.service could not be found.
  • Uninstalling docker and reinstalling Docker.

Problem Resolved:
I am not sure which if any of the above particular steps was the resolving step, but after a windows update and restart I am no longer getting the above errors.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.