Error saving credentials: error storing credentials - err: exit status 1
docker login authenticated, but the credential helper (keychain, pass, wincred) couldn’t store the password.
Error saving credentialserror storing credentialsThe user name or passphrase you entered is not correct Meaning
Common on headless Linux (pass/secretservice not set up), locked macOS keychains over SSH, and WSL.
Common causes
- Credential helper not initialised (pass without a GPG key)
- Keychain locked or unavailable (SSH session)
- Helper mismatch from another Docker install
⚡ Quick fix
- Remove credsStore so credentials are stored in config.json (base64, less secure)
- Initialise the helper (pass init <gpg-id>)
- Unlock the keychain
Detailed fix by platform
Shell
- bash
security unlock-keychain ~/Library/Keychains/login.keychain-db # macOS over SSH pass init "<gpg-key-id>" # Linux pass helper
How to diagnose
- Helper — credsStore value
- State — Is the keychain/pass store usable?
🔧 Still not fixed?
Many errors look alike. If the steps above didn’t solve it, one of these is probably what you’re facing:
Similar errors
Most viewed in Docker
- did not complete successfully failed to solve: process "/bin/sh -c ..." did not complete successfully: exit code: 1
- lookup registry-1.docker.io: no such host dial tcp: lookup registry-1.docker.io: no such host / Temporary failure in name resolution during docker build
- Mounts denied Docker Desktop: Mounts denied: The path is not shared from the host and is not known to Docker
Other ways to find it
Where this error sits
Origin: Platform & cloud. Errors that are often confused with or caused by this one (click to open):
🧠 Still stuck? Analyze your error
Paste the full message, response headers or stack trace — we'll detect the platform and point to the most likely cause.
💬 What worked for others
No tips yet — did something else fix this for you?
Share what worked for you
Tips are checked by an editor before they appear. Links are removed.
Report a correction or suggest an improvement
Last updated 15 Oct 2026