我遵循https://sbstjn.com/blog/aws-cdk-lambda-docker-container-example/并使用AWS CDK部署Lambda Docker。在"cdk部署"上,我得到以下错误。链接到我的github仓库是https://github.com/aqilzeeshan/cdk_dockerlambda
谁能告诉我是什么问题?由于Do you wish to deploy these changes (y/n)? y
CdkLambdaDockerStack: deploying...
[0%] start: Publishing dcfb2f152c6c0b2ca779c90dee5d59d3b510805a3ed884b310200624e32a4b27:current
Error: write EPIPE
at afterWriteDispatched (internal/stream_base_commons.js:156:25)
at writeGeneric (internal/stream_base_commons.js:147:3)
at Socket._writeGeneric (net.js:785:11)
at Socket._write (net.js:797:8)
at writeOrBuffer (internal/streams/writable.js:358:12)
at Socket.Writable.write (internal/streams/writable.js:303:10)
at C:Usersamuham210AppDataRoamingnpmnode_modulesaws-cdknode_modulescdk-assetslibprivateshell.ts:28:19
at new Promise (<anonymous>)
at Object.shell (C:Usersamuham210AppDataRoamingnpmnode_modulesaws-cdknode_modulescdk-assetslibprivateshell.ts:26:10)
at Docker.execute (C:Usersamuham210AppDataRoamingnpmnode_modulesaws-cdknode_modulescdk-assetslibprivatedocker.ts:75:13)
我找到问题了。需要安装Docker来构建镜像。在我运行'cdk deploy'的机器上安装docker后,上述问题解决了。