【问题标题】:Deploy docker container fails on AWS Beanstalk在 AWS Beanstalk 上部署 docker 容器失败
【发布时间】:2021-07-19 15:35:41
【问题描述】:

我有一个简单的应用程序 (docker),我想通过 AWS beanstalk 进行部署。 你有一个包含 2 个文件的 zip 档案:

+simple.jar
+Dockerfile

Dockerfile 包含这些记录:

FROM openjdk:11
WORKDIR /usr/app
COPY ./ ./
EXPOSE 80
CMD ["java", "-jar", "simple.jar"]

我在部署期间收到此错误

[ERROR] An error occurred during execution of command [app-deploy] - [Run Docker Container]. Stop running the command. Error: open file failed with error open /opt/elasticbeanstalk/deployment/.aws_beanstalk.current-container-id: no such file or directory 

通过“docker build”进行本地构建工作,应用程序在端口 80 上可用。

所以我不确定该怎么做以及如何更深入地调试问题。

【问题讨论】:

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


    【解决方案1】:

    所以问题通过将 Platform 分支从 “Docker 在 64but Amazon Linux 2 上运行”到 “Docker 在 64 上运行,但在 Amazon Linux 上运行”。

    它有不同的版本,但实际上它为什么不运行需要更深入的调查。

    【讨论】:

      猜你喜欢
      • 2017-01-29
      • 2016-06-19
      • 2015-12-15
      • 2015-12-17
      • 2016-10-14
      • 2021-08-30
      • 2014-03-22
      • 2013-09-23
      • 2019-01-03
      相关资源
      最近更新 更多