Skip to content

Instantly share code, notes, and snippets.

@techsolx
Last active February 1, 2022 18:47
Show Gist options
  • Save techsolx/88a75566541b2572ae0efecbde418ca9 to your computer and use it in GitHub Desktop.
Save techsolx/88a75566541b2572ae0efecbde418ca9 to your computer and use it in GitHub Desktop.
Error saving credentials: error storing credentials - err: exit status 1, out: `User interaction is not allowed.`

Error when remote on OSX cli and running docker commands for aws login or other login

Issue is that the cli lacks access to the keychain

aws ecr get-login-password --region us-west-2 | docker login --username AWS --password-stdin 123456789112.dkr.ecr.us-west-2.amazonaws.com
Error saving credentials: error storing credentials - err: exit status 1, out: `User interaction is not allowed.`

Fix with:

security -v unlock-keychain

Source: docker/docker-credential-helpers#82

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment