Ubuntu Amazon Web服务Beanstalk上Dockerfile的问题

Ubuntu Amazon Web服务Beanstalk上Dockerfile的问题,ubuntu,amazon-web-services,debian,amazon-elastic-beanstalk,dockerfile,Ubuntu,Amazon Web Services,Debian,Amazon Elastic Beanstalk,Dockerfile,我在Amazon Web服务(BeanStalk)上启动了两个带有2个Dockerfile的环境(一个带有Ubuntu,一个带有Debian) DOCKERFILE UBUNTU: DOCKERFILE DEBIAN: 我不明白为什么debian版本不起作用 我只有这个错误: 创建环境操作已完成,但命令超时。尝试增加超时时间。有关更多信息,请参阅疑难解答文档 你能帮我吗?有什么想法吗?这是因为下载和构建docker映像所花费的时间是可变的。您可以使用选项设置增加超时 从我之前的答案复制到这里:

我在Amazon Web服务(BeanStalk)上启动了两个带有2个Dockerfile的环境(一个带有Ubuntu,一个带有Debian)

DOCKERFILE UBUNTU: DOCKERFILE DEBIAN: 我不明白为什么debian版本不起作用

我只有这个错误:

创建环境操作已完成,但命令超时。尝试增加超时时间。有关更多信息,请参阅疑难解答文档


你能帮我吗?有什么想法吗?

这是因为下载和构建docker映像所花费的时间是可变的。您可以使用选项设置增加超时

从我之前的答案复制到这里:

可以使用ebextensions指定选项设置

在名为
.ebextensions
的目录中的应用程序源中创建一个文件。假设文件是
.ebextensions/01 rease timeout.config

文件内容应为:

option_settings:
    - namespace: aws:elasticbeanstalk:command
      option_name: Timeout
      value: 1000
注意:此文件为YAML格式。 在此之后,您可以使用此版本的源代码更新您的环境

从该选项设置的文档中:

Timeout: Number of seconds to wait for an instance to complete executing commands.

For example, if source code deployment tasks are still running when you reach the configured timeout period, AWS Elastic Beanstalk displays the following error: "Some instances have not responded to commands. Responses were not received from <instance id>." You can increase the amount of time that the AWS Elastic Beanstalk service waits for your source code to successfully deploy to the instance.
Timeout:等待实例完成执行命令的秒数。
例如,如果达到配置的超时时间时源代码部署任务仍在运行,AWS Elastic Beanstalk将显示以下错误:“某些实例未响应命令。未从接收响应。”您可以增加AWS Elastic Beanstalk服务等待源代码成功部署到实例的时间。
您可以阅读更多关于ebextensions的信息。有关选项设置的文档可用

option_settings:
    - namespace: aws:elasticbeanstalk:command
      option_name: Timeout
      value: 1000
Timeout: Number of seconds to wait for an instance to complete executing commands.

For example, if source code deployment tasks are still running when you reach the configured timeout period, AWS Elastic Beanstalk displays the following error: "Some instances have not responded to commands. Responses were not received from <instance id>." You can increase the amount of time that the AWS Elastic Beanstalk service waits for your source code to successfully deploy to the instance.