服务结构容器项目可以从Docker Hub中提取吗? [英] Can a Service Fabric Container project pull from Docker Hub?

查看:86
本文介绍了服务结构容器项目可以从Docker Hub中提取吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经在Visual Studio中创建了一个新的Service Fabric容器项目,该项目正试图通过发布到本地群集来进行测试.我创建了一个Windows容器映像,该映像已在Docker中本地运行.我将映像推送到Docker Hub中的私有注册表中.

I have created a new Service Fabric Container project in Visual Studio that I am trying to test by publishing to the local cluster. I have created a Windows Container image that I have run locally in Docker. I pushed the image to a private registry in Docker Hub.

当我将项目发布到本地集群时,它会部署,但随后出现错误:

When I publish the project to the local cluster, it deploys, but then I get an error:

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注册表?

All the examples show pulling an image from Azure Container Registry. Does Service Fabric only work with ACR, or do I have to add additional configuration to my service manifest to use a private Docker Hub registry?

而且,似乎无法在本地找到容器.我尝试使用本地存储库中图像的带标签的本地名称(我使用"docker images"进行了检查,它在那里).结果相同. Service Fabric应该能够找到它:

also, it seems unable to find the container locally. I tried using the tagged local name of the image from the local repository (I checked using "docker images" and it is there). Same result. Service Fabric should be able to find it:

Service Fabric将下拉该图像(如果它不在本地注册表中),并根据您提供的参数启动一个容器.

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.

来自 MSDN博客服务结构

推荐答案

问题似乎在于Service Fabric不支持Windows 10上的容器部署(而且我的开发机是Win10,因此本地开发/测试已经完成) .在 Azure文档上,有对此效果的说明. 但我想我没有注意到它们或掩饰它们...

It looks like the problem is that Service Fabric does not support container deployment on Windows 10 (and my dev machine is Win10, so local development/testing is out). There are notes to this effect on the Azure Documentation but I guess I didn't notice them or glossed over them...

这篇关于服务结构容器项目可以从Docker Hub中提取吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆