适用于 Amazon ECS 的 Fargate 上的 Windows 容器注意事项 - Amazon Elastic Container Service
Amazon Web Services 文档中描述的 Amazon Web Services 服务或功能可能因区域而异。要查看适用于中国区域的差异,请参阅 中国的 Amazon Web Services 服务入门 (PDF)

适用于 Amazon ECS 的 Fargate 上的 Windows 容器注意事项

以下是在 Amazon Fargate 上运行 Windows 容器时需要了解的区别和注意事项。

如果您需要在 Linux 和 Windows 容器上运行任务,则需要为每个操作系统创建单独的任务定义。

Amazon 负责操作系统许可证管理,因此您不需要任何额外的 Microsoft Windows Server 许可证。

Amazon Fargate 上的 Windows 容器支持以下操作系统:

  • Windows Server 2019 Full

  • Windows Server 2019 Core

  • Windows Server 2022 Full

  • Windows Server 2022 Core

Amazon Fargate 上的 Windows 容器支持 awslog 驱动程序。有关更多信息,请参阅 将 Amazon ECS 日志发送到 CloudWatch

Fargate 上的 Windows 容器上不支持以下功能:

  • Amazon FSx

  • ENI 中继

  • 适用于 Windows 容器的 gMSA

  • 针对任务的 App Mesh 服务和代理集成

  • Firelens 日志路由器集成用于任务

  • EFS 卷

  • EBS 卷

  • 以下任务定义参数:

    • maxSwap

    • swappiness

    • environmentFiles

  • Fargate Spot 容量提供程序

  • 映像卷

    Dockerfile volume 选项被忽略。改为在任务定义中指定绑定挂载。有关更多信息,请参阅 将绑定挂载与 Amazon ECS 结合使用

  • Windows 容器将忽略任务级 CPU 和内存参数。我们建议为 Windows 容器指定容器级资源。

  • 用于任务的内存

  • 容器上的 mermoryReservation

  • 容器上的重启策略