gpt4 book ai didi

amazon-web-services - AWS Elastic Beanstalk Docker部署失败

转载 作者:行者123 更新时间:2023-12-02 18:41:14 26 4
gpt4 key购买 nike

将docker app部署到AWS eb时,有人遇到部署失败吗?

这是一条日志

time="2016-09-20T09:36:42.802106539Z" level=error msg="Handler for DELETE /v1.23/containers/c7bc72d9ccec returned error: You cannot remove a running container c7bc72d9ccec6557ddca8e90c7c77b350cb0c80be9a90921478adccd70a2b97a. Stop the container before attempting removal or use -f" time="2016-09-20T09:36:42.924322201Z" level=error msg="Handler for DELETE /v1.23/images/9daab71ad3c0 returned error: conflict: unable to delete 9daab71ad3c0 (cannot be forced) - image is being used by running container c7bc72d9ccec" time="2016-09-20T09:36:42.924865908Z" level=error msg="Handler for DELETE /v1.23/images/dbcc41959b55 returned error: conflict: unable to delete dbcc41959b55 (cannot be forced) - image has dependent child images"



对于第一次环境部署,它运行良好。但是,每次我部署该应用程序的新版本时,它都会失败。

在64位Amazon Linux 2016.03 v2.1.6上运行| Docker 1.11.2

我的Dockerfile很简单:
# Get Node Latest
FROM node:6.5.0

# Create working directory
WORKDIR /app
ADD . /app

# Install depencencies
RUN npm install

# Expost 3000 port
EXPOSE 3000

# Start app
CMD ["node", "server.js"]

最佳答案

事实证明,npm install的运行时间可能太长,因为一旦将node_modules放入zip并从Dockerfile中删除npm install,现在部署需要3-5分钟。

关于amazon-web-services - AWS Elastic Beanstalk Docker部署失败,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/39609651/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com