Amazon cloudformation Cloudformation无法创建ecs服务(在群集中未找到容器实例。)
我正在尝试创建Cloudformation ECS堆栈,但我一直在运行此错误Amazon cloudformation Cloudformation无法创建ecs服务(在群集中未找到容器实例。),amazon-cloudformation,amazon-ecs,Amazon Cloudformation,Amazon Ecs,我正在尝试创建Cloudformation ECS堆栈,但我一直在运行此错误 service XXXX was unable to place a task because no container instance met all of its requirements. Reason: No Container Instances were found in your cluster. For more information, see the Troubleshooting sec
service XXXX was unable to place a task because no container instance
met all of its requirements. Reason: No Container Instances were found
in your cluster. For more information, see the Troubleshooting section.
我使用了来自amazon网页的模板cloudformation ECS。有人知道怎么修吗?提前感谢您。您的群集很可能没有任何与之关联的主机。确认这一点最直接的方法是创建一个新集群,并在创建集群时指定要添加到其中的现有主机(稍后可以通过用户数据设置自动执行此操作,但这是另一个主题)
创建集群后,您应该在
EC2实例
选项卡下看到您的主机。如果您看到它们,请尝试再次启动任务。在AWS控制台中显示相同的错误消息,并且没有EC2实例与群集关联。此外,虽然这可能是一个重复的问题,但解决方案是不同的
EC2上运行的ecs容器代理已停止。Docker日志显示有关检查点文件的错误消息。很遗憾,我没有复制错误消息
最终不得不删除/var/lib/
目录中的一个文件。我将用更多信息更新此帖子。可能重复的