gpt4 book ai didi

amazon-web-services - ECS 错误 : "The closest matching container-instance is missing an attribute required by your task"

转载 作者:行者123 更新时间:2023-12-04 00:26:24 25 4
gpt4 key购买 nike

我创建了一个 ECS 服务,它无法在 EC2 容器中运行任何任务。我一直在服务的“事件”选项卡下收到此消息。

service QA-SVC was unable to place a task because no container instance met all of its requirements. The closest matching container-instance f84f8418-2b63-4d02-ac5f-2ee3860d4fac is missing an attribute required by your task.

我已经阅读了 SO 中的几乎所有问题线程,但我无法找出此错误的原因。错误消息没有清楚地解释缺少(或不匹配)的特定属性。我不知道 EC2 中有什么我需要为在其上运行的任务进行配置。

最佳答案

抛出此错误是因为,正如它所说,您的实例 is missing an attribute required by your task .

Some task definition parameters require a specific Docker remote API version to be installed on the container instance. Others, such as the logging driver options, require the container instances to register those log drivers with the ECS_AVAILABLE_LOGGING_DRIVERS agent configuration variable. If your task definition contains a parameter that requires a specific container instance attribute, and you do not have any available container instances that can satisfy this requirement, the task cannot be placed. source



您需要如何配置以及配置哪些属性取决于您的任务定义要求。有些需要您更新容器代理配置,可以在 /etc/ecs/ecs.config 下找到。如果您已经习惯了 ECS 优化的 AMI。

您需要通过这些链接( task definition parameterscontainer agent configuration )来了解如何根据您的任务定义要求准确配置您的实例。

关于amazon-web-services - ECS 错误 : "The closest matching container-instance is missing an attribute required by your task",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/56290746/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com