

# 排查 Amazon ECS CannotStopContainerError 错误
<a name="cannot-stop-container"></a>

以下是一些 CannotStopContainerError 错误消息和可以用来修正错误的操作。

要使用 AWS 管理控制台 检查已停止的任务是否有错误消息，请参阅 [查看 Amazon ECS 已停止任务错误](stopped-task-errors.md)。

## CannotStopContainerError
<a name="cannot-stop-container-1"></a>

容器无法停止时，将发生此错误。

有关如何调试和修复此问题的信息，请参阅 AWS re:Post 上的[为什么我的 Amazon ECS 任务停止了](https://repost.aws/knowledge-center/ecs-task-stopped)。