docker AWS CDK:保存凭据时出错:存储凭证时出错-错误:退出状态1

hsvhsicv  于 2022-11-22  发布在  Docker
关注(0)|答案(1)|浏览(124)

使用AWS CDK,我尝试在AWS上部署带有lambda函数的Docker映像。我收到以下错误。

[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

请问我能做些什么?

xytpbqjk

xytpbqjk1#

部署之前,请在计算机上打开Docker应用程序/守护程序。

相关问题