ECS: Random container failed to start - no log



We encountered troubles with ECS on Docker on EC2. Some tasks stay a long time in provisionning state while an EC2 is available and others tasks with the same docker image and parameters succeed to start. Then, the status goes from PROVISIONNING to STOPPED with reason : "Task failed to start".

I have no logs, or info on the containers in ECS console and Cloudwatch, and did not find any tips in the EC2 logs...

Any idea on why we have this behaviour ? or a way to have more traces to investigate ?



  • Can you run aws ecs describe-tasks --tasks <task-id> --cluster <cluster-name> and see what it reports as the stopped reason? Task status will remain available for about an hour after the task stops.

asked 6 months ago56 views
No Answers

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions