我尝试在我的 Amazon Elastic Container Service (Amazon ECS) 集群中放置一个任务。但是我的任务放置失败了,并且任务在我的集群中一直处于 RUNNING(正在运行)状态,没有发生变化。
要成功在集群中放置任务,请选择以下任意一种解决方案:
根据您在步骤 5 中发现的结果,查看服务事件消息以排除错误所导致的故障。
**注意:**服务事件仅显示最近的 100 个事件。
**重要提示:**您仅可以看到最近 1 小时内停止的已停止任务。
根据您在步骤 5 中发现的结果,查看以下信息以解决错误:
另外,请查看 API 故障原因。
根据您在步骤 6 中发现的结果,查看以下信息以解决错误:
**注意:**如果您使用了任何任务放置约束或策略,您的集群必须使用符合您的约束或策略要求的实例。
如何解决 Amazon ECS 中的错误“[AWS service] was unable to place a task because no container instance met all of its requirements”(由于没有容器实例满足其全部要求,[AWS 服务] 无法放置任务)?
如何解决 Amazon ECS 中的错误“the closest matching container-instance container-instance-id has insufficient CPU units available”(最匹配的容器-实例 ID 没有足够的可用 CPU 单位)?
如果解决 Amazon ECS 中我的服务出现的错误“the closest matching container-instance container-instance-id encountered error 'AGENT'”(最匹配的容器实例 ID 遇到错误“AGENT”)?
如何在 Amazon ECS 中解决 Amazon ECR 错误“CannotPullContainerError: API error”?
如何解决 Amazon ECS 中的“CannotPullContainerError: Error response from daemon:Get https://registry-name/: net/http: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers)”错误?