-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bug: sam local invoke - DockerException - missing credential helper #7781
Comments
Also, it's unclear why I'd need a credential helper for a local invoke - so that's weird. |
Hello @miketheman, Thank you for reporting this issue. The problem is potentially coming from your docker config file. Solution
|
Thanks, this kinda resolved it for me, I removed the credsStore setting completely. |
Thanks all, indeed, it was my local config. Considering this is a semi-known issue, would it make sense for SAM to emit a more helpful message? |
Also, it's still unclear why Sam wants to use docker for a local invoke for a non-Dockerised application. |
SAM creates a docker and this containerized local environment emulates the cloud-based execution environment of your Lambda function. See more: https://docs.aws.amazon.com/serverless-application-model/latest/developerguide/serverless-getting-started-hello-world.html#serverless-getting-started-hello-world-test |
@roger-zhangg Thanks for the explanation and link! Based on that, this issue is closed. |
|
Description:
On a fresh project, using the default hello_world template from sam init, the a failure is shown when attempting to invoke locally.
Steps to reproduce:
Observed result:
Expected result:
Not a failure. Or something upstream that declares a dependency on
docker-credential-ecr-login
(aka amazon-ecr-credential-helper) so that the failure isn't completely weird.Additional environment details (Ex: Windows, Mac, Amazon Linux etc)
The text was updated successfully, but these errors were encountered: