Docker Windows Swarm IIS 服务与 Win10 Insider 运行 但无法访问
Docker for Windows Swarm IIS Service with Win10 Insider running but unreachable
我目前正在 Docker 为 Windows 试验 Swarm 服务。新的 Win10 Insider 版本支持 Windows 容器的覆盖网络,我很高兴看到我的 IIS 服务真正启动。我遇到的唯一问题是我无法访问浏览器中的服务,尽管尝试了多种方法,例如不同的端口和网络。发出的命令如下:
docker service create --name webfarm -p 80:80 microsoft/iis
我还尝试使用 --network
标志来尝试不同的网络,并且我确保测试了 docker service inspect webfarm
命令中可见的所有 IP 地址。
docker service ps webfarm
确实表明我的服务处于 运行 状态并且没有任何错误,所以我不知道我还能尝试什么。特别是因为这些命令在 Linux 和 Apache 上运行良好。
我想知道是否有人能够在 Windows Insider build (15046) 上使用 Windows 容器成功创建服务,如果是这样,怎么做的?
没关系,我发现这实际上还不受支持。
以下来源指出:
"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/)
事实上,博文是这样说的:
"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/)
我想我将不得不等待这个功能,同时我会使用替代方案。
我目前正在 Docker 为 Windows 试验 Swarm 服务。新的 Win10 Insider 版本支持 Windows 容器的覆盖网络,我很高兴看到我的 IIS 服务真正启动。我遇到的唯一问题是我无法访问浏览器中的服务,尽管尝试了多种方法,例如不同的端口和网络。发出的命令如下:
docker service create --name webfarm -p 80:80 microsoft/iis
我还尝试使用 --network
标志来尝试不同的网络,并且我确保测试了 docker service inspect webfarm
命令中可见的所有 IP 地址。
docker service ps webfarm
确实表明我的服务处于 运行 状态并且没有任何错误,所以我不知道我还能尝试什么。特别是因为这些命令在 Linux 和 Apache 上运行良好。
我想知道是否有人能够在 Windows Insider build (15046) 上使用 Windows 容器成功创建服务,如果是这样,怎么做的?
没关系,我发现这实际上还不受支持。
以下来源指出:
"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/)
事实上,博文是这样说的: "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/)
我想我将不得不等待这个功能,同时我会使用替代方案。