Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

AWS CDK: Error saving credentials: error storing credentials - err: exit status 1

Using AWS CDK, I am trying to deploy the Docker image with lambda function on AWS. And I am getting the following error.

[100%] fail: docker login --username AWS --password-stdin https://XXXXXXXXXXXX.dkr.ecr.us-east-1.amazonaws.com exited with error code 1: Error saving credentials: error storing credentials - err: exit status 1, out: `Post "http://ipc/registry/credstore-updated": dial unix /Users/my_mac/Library/Containers/com.docker.docker/Data/backend.sock: connect: connection refused`

 ❌  MyService (prj-development) failed: Error: Failed to publish one or more assets. See the error messages above for more information.
    at publishAssets (/Users/my_mac/.npm/_npx/8365afa3375eae8d/node_modules/aws-cdk/lib/util/asset-publishing.ts:44:11)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at CloudFormationDeployments.publishStackAssets (/Users/my_mac/.npm/_npx/8365afa3375eae8d/node_modules/aws-cdk/lib/api/cloudformation-deployments.ts:464:7)
    at CloudFormationDeployments.deployStack (/Users/my_mac/.npm/_npx/8365afa3375eae8d/node_modules/aws-cdk/lib/api/cloudformation-deployments.ts:339:7)
    at CdkToolkit.deploy (/Users/my_mac/.npm/_npx/8365afa3375eae8d/node_modules/aws-cdk/lib/cdk-toolkit.ts:209:24)
    at initCommandLine (/Users/my_mac/.npm/_npx/8365afa3375eae8d/node_modules/aws-cdk/lib/cli.ts:341:12)

Failed to publish one or more assets. See the error messages above for more information.
make: *** [deploy-local] Error 1

What can I do, please?

like image 745
Jaroslav Bezděk Avatar asked Oct 17 '25 08:10

Jaroslav Bezděk


1 Answers

Before deployment, open the Docker app/daemon on your machine.

like image 105
Jaroslav Bezděk Avatar answered Oct 18 '25 23:10

Jaroslav Bezděk



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!