将Docker容器部署到Elastic Beanstalk时出错

时间:2015-11-02 19:40:09

标签: amazon-web-services docker elastic-beanstalk dockerfile

我使用Elastic Beanstalk来部署我创建的Docker镜像。我创建了一个带有Dockerfile和Dockerrun.aws.json文件的.zip文件。

部署时,出现以下错误:

[2015-11-02T18:08:30.366Z] ERROR [4515]  : Command execution failed: Activity failed. (ElasticBeanstalk::ActivityFatalError) caused by: jq: error: Cannot iterate over null ab6ac43aeaf75fb000d02a1fee73e829a92cef629bad46e6b727dc967f837b54
Docker container quit unexpectedly after launch: Docker container quit unexpectedly on Mon Nov  2 18:08:30 UTC 2015:. Check snapshot logs for details. (ElasticBeanstalk::ExternalInvocationError) caused by: jq: error: Cannot iterate over null ab6ac43aeaf75fb000d02a1fee73e829a92cef629bad46e6b727dc967f837b54
Docker container quit unexpectedly after launch: Docker container quit unexpectedly on Mon Nov  2 18:08:30 UTC 2015:. Check snapshot logs for details. (Executor::NonZeroExitStatus)
[2015-11-02T18:08:30.366Z] ERROR [4515]  : Command CMD-Startup(stage 1) failed!

奇怪的是,当我使用弹性beanstalk CLI在本地部署时,它运行正常。关于这里可能发生什么的任何想法?

1 个答案:

答案 0 :(得分:0)

您需要将以下位添加到 Dockerrun.aws.json 文件中以解决此问题。

"Volumes": []