运行Win10 Insider的Windows for Docker Swarm IIS服务但无法访问 [英] Docker for Windows Swarm IIS Service with Win10 Insider running but unreachable

查看:148
本文介绍了运行Win10 Insider的Windows for Docker Swarm IIS服务但无法访问的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我目前正在尝试使用Docker for Windows的Swarm Services.新的Win10 Insider内部版本支持Windows容器的覆盖网络,我很高兴看到我的IIS服务真正启动.我遇到的唯一问题是,尽管尝试了多种操作(例如不同的端口和网络),但我仍无法在浏览器中访问该服务.发出的命令如下:

I'm currently experimenting with Swarm Services with Docker for Windows. The new Win10 Insider build supports overlay networking for Windows containers and I was pleased to see my IIS service actually starting. The only issue i came across is that i can not reach the service in the browser, despite trying multiple things such as different ports and networks. The command issued is as following:

docker service create --name webfarm -p 80:80 microsoft/iis

我还尝试使用--network标志来尝试不同的网络,并且确保测试了docker service inspect webfarm命令中所有可见的IP地址.

I have also tried to use the --network flag to try different networks and I have made sure to test all IP addresses visible in the docker service inspect webfarm command.

docker service ps webfarm确实表明我的服务处于RUNNING状态,并且没有任何错误,所以我不知道我还能尝试什么.尤其是因为这些命令在Linux和Apache上运行良好.

docker service ps webfarm does indicate that my service is in state RUNNING and does not have any errors, so i don't know what else i can try. Especially since these commands worked fine on Linux with Apache.

我想知道是否有人能够在Windows Insider版本(15046)上使用Windows容器成功创建服务,如果可以,怎么办?

I was wondering if anyone has been able to successfully create a service using Windows Containers on the Windows Insider build (15046), and if so, how?

推荐答案

没关系,我发现实际上还不支持.

Never mind, i found this actually is not supported yet.

以下信息来源:

目前,仅按照Microsoft博客文章中的描述实施了DNS循环.您现在无法使用它在外部发布端口.在不久的将来还会有更多发布." ( https://stefanscherer.github.io/docker-swarm-mode-windows10/)

"At the moment only DNS round robin is implemented as described in the Microsoft blog post. You cannot use to publish ports externally right now. More to come in the near future." (https://stefanscherer.github.io/docker-swarm-mode-windows10/)

事实上,博客文章指出以下内容: 当前,Windows支持服务之间的DNS Round-Robin负载平衡.尚不支持Windows Docker主机的路由网格,但即将推出.今天寻求替代负载平衡策略的用户可以设置外部负载平衡器(例如NGINX)并使用Swarm的发布端口模式公开要进行负载平衡的容器主机端口." (

And indeed, the blogposts states the following: "Currently, Windows supports DNS Round-Robin load balancing between services. The routing mesh for Windows Docker hosts is not yet supported, but will be coming soon. Users seeking an alternative load balancing strategy today can setup an external load balancer (e.g. NGINX) and use Swarm’s publish-port mode to expose container host ports over which to load balance." (https://blogs.technet.microsoft.com/virtualization/2017/02/09/overlay-network-driver-with-support-for-docker-swarm-mode-now-available-to-windows-insiders-on-windows-10/)

我想我必须等待此功能,与此同时,我将使用替代功能.

I guess I'll have to wait for this feature, in the meantime I will use the alternative.

这篇关于运行Win10 Insider的Windows for Docker Swarm IIS服务但无法访问的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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