以下是在 AWS Fargate 上运行 Windows 容器时需要了解的区别和注意事项。
如果您需要在 Linux 和 Windows 容器上运行任务,则需要为每个操作系统创建单独的任务定义。
AWS 负责操作系统许可证管理,因此您不需要任何额外的 Microsoft Windows Server 许可证。
AWS Fargate 上的 Windows 容器支持以下操作系统:
-
Windows Server 2019 Full
-
Windows Server 2019 Core
-
Windows Server 2022 Full
-
Windows Server 2022 Core
AWS 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