我在Visual Studio中创建了一个新的Service Fabric Container项目,我试图通过发布到本地群集来进行测试。我创建了一个我在Docker中本地运行的Windows容器镜像。我将镜像推送到Docker Hub的私人注册表中。服务Fabric容器项目可以从Docker Hub中提取吗?
当我发布项目到本地集群,它部署,但后来我得到一个错误:
Error event: SourceId='System.Hosting', Property='Download:1.0:1.0'.
There was an error during download.Failed to download container image docker.io/(username)/(repository)
所有例子都甩开Azure的容器注册的图像。 Service Fabric是否仅适用于ACR,还是必须将其他配置添加到我的服务清单才能使用私人Docker Hub注册表?
编辑:另外,它似乎无法在本地找到容器。我尝试使用本地存储库中的图像的标记的本地名称(我使用“泊坞窗图像”进行检查,它在那里)。同样的结果。服务织物应该能够找到它:
Service Fabric will pull down the image (if it's not already in the local registry) and launch a container based on the arguments you provide.