如何诊断ECS Fargate任务启动失败? [英] How to diagnose ECS Fargate task failing to start?
问题描述
我正在尝试使用其ECS服务在AWS上启动/运行Dockerfile.我可以在本地运行docker镜像,但是在Fargate启动类型上失败.我已将Docker映像上传到ECR,并从中创建了集群/服务/任务.
I'm trying to launch/run a Dockerfile on AWS using their ECS service. I can run my docker image locally just fine, but it's failing on the Fargate launch type. I've uploaded my Docker image to ECR, and I've created a cluster/service/task from it.
但是,群集的任务状态仅显示为"DEPROVISIONING(任务无法启动)",但是它没有提供日志或运行映像输出的详细信息,因此我不知道出了什么问题.如何查找更多信息并诊断ECS为什么无法运行我的映像?
However, my cluster's task status simply reads "DEPROVISIONING (Task failed to start)", but it provides no logs or details of the output of my running image, so I have no idea what's wrong. How do I find more information and diagnose why ECS isn't able to run my image?
推荐答案
请转到集群> 任务> 详细信息> 容器
您可能会在错误消息"图中的红色矩形周围看到一些错误消息.
You could see some error message around the red rectangle in the figure "error message."
任务详细信息:
错误消息:
这篇关于如何诊断ECS Fargate任务启动失败?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!