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.
Seen on:
Docker
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
Other ways to find it
🧠 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.
Was this page helpful?
Report a correction or suggest an improvement
Last updated 7 Oct 2026