How do I troubleshoot Amazon ECS tasks stopping or failing to start while my container exits?

Last updated: 2022-11-04

My Amazon Elastic Container Service (Amazon ECS) container exits unexpectedly, and tasks stop or fail to start. How can resolve the issue?

Short description

Your containers can exit due to application issues, resource constraints, or other issues.

For task failure due to image issues, see How do I resolve the "Image does not exist" error when my tasks fail to start in my Amazon ECS cluster?

For AWS Fargate tasks that fail due to network configuration or resource constraint issues, see Stopped tasks error codes.

Resolution

To identify why your tasks stopped, follow these troubleshooting steps:


Did this article help?


Do you need billing or technical support?