我正在尝试在 Service Fabric 群集中运行 Docker 映像。此图像在我的本地计算机上运行良好。但是,当我将它部署到本地群集或 Azure Service Fabric 上的群集时,它开始崩溃。
我尝试在机器上运行 docker ps 命令。它显示一个容器映像正在运行,但 5 秒后当我再次运行该命令时,它显示一个空列表。
我的应用程序是使用 ASP.NET Core 2.0.7 构建的,我的容器映像是 microsoft/aspnetcore:2.0.7-nanoserver-1709
我正在为我的集群使用以下操作系统:
优惠:WindowsServerSemiAnnual SKU:
Datacenter-Core-1709-with-Containers-smalldisk
我看到以下错误:
错误事件:SourceId='System.Hosting',
Property='CodePackageActivation:Code:EntryPoint'。
CodePackage 激活期间出错。System.Fabric.FabricException (-2147017731)
无法启动容器。
ContainerName=sf-2-4e0c854d-d2d9-458a-82c5-78da874dc520_6fd774de-4796-4563-ab3f-c3bbb4d49e0c,ApplicationId=ServiceFabricApplicationType_App2,ApplicationName=fabric:/ServiceFabricApplication。DockerRequest 返回 StatusCode=InternalServerError with ResponseBody={"message":"container fb204978704c52917704f1f6985ec9a73c9e76596e7258ff0ffce93c9c5109e0 在 CreateContainer 期间遇到错误:Windows 系统调用失败