Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pyk/df159be4d740cc4d69b2c87e2d189bed to your computer and use it in GitHub Desktop.
Save pyk/df159be4d740cc4d69b2c87e2d189bed to your computer and use it in GitHub Desktop.
Windows 10 Fix docker-credential-desktop not installed or not available in PATH

When try to run AWS Lambda locally on windows:

sam local invoke

I got the following error:

Invoking app.lambda_handler (python3.8)
...
    raise errors.InitializationError(
docker.credentials.errors.InitializationError: docker-credential-desktop not installed or not available in PATH

The solution is to fix typo in the ~/.docker/config.json.

Fix credsStore to credStore:

{"credStore":"desktop","stackOrchestrator":"swarm"}
@smartens80
Copy link

+1

@tonypartridge
Copy link

+1

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