找不到适用于Windows版本14393的良好docker映像 [英] Can't find a good docker image for windows version 14393

查看:286
本文介绍了找不到适用于Windows版本14393的良好docker映像的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试为mvc5网站设置docker映像,以使用基于容器的群集将其部署到我的服务结构Windows Server 2016中.

I am trying to setup a docker image for an mvc5 website to deploy to my service fabric Windows server 2016 with containers based cluster.

似乎每个配置了IIS的映像都基于与14393不同的Windows构建,当我将其部署到服务结构时,它们无法在Windows服务器上启动.

It seems that every image with IIS configured is based on a different windows build than 14393, and when I deploy those to service fabric they fail to start on my windows servers.

我在这里错过了什么吗? dockerfile在哪台服务器上运行有关系吗?到目前为止,在我的服务结构集群上的docker容器中启动并运行一个简单站点似乎是不可能的.我花了整整一天时间在microsoft/windowsservercore上工作,但它无法正常工作,而且似乎没有办法对它启用失败的请求跟踪,因为尝试安装所有子模块的Web-Server失败.

Am I missing something here? Does it matter what server the dockerfile runs on? So far is seems impossible to get a simple site up and running in a docker container on my service fabric cluster. I spent over a day with microsoft/windowsservercore and it just won't work, and there seems to be no way to enable failed request tracing on it because attempting to install Web-Server with all submodules fails.

推荐答案

如果您进入Docker注册表,找到映像,然后导航至 TAGS 标签,可以找到所有映像版本以及相应的版本.

If you go to docker registry, find the image, and navigate to the TAGS tab, you can find all image versions and the respective build.

对于ASPNET MVC,图像带有标签4.7.1-windowsservercore-10.0.14393.1884可能是您需要的那个.

For ASPNET MVC, the image microsoft/aspnet with tag 4.7.1-windowsservercore-10.0.14393.1884 is probably the one you need.

对于IIS映像,该映像 microsoft/iis 标记为windowsservercore-10.0.14393.1944可能适合您,您可能必须为应用程序添加缺少的软件包.

For IIS image, the image microsoft/iis with tag windowsservercore-10.0.14393.1944 might be suitable for you, you might have to add the missing packages for your application.

问题很可能是您尝试使用不兼容的最新图像.在您的docker映像中,当您创建docker文件时,

The problem is likely you trying to use the latest image, that won't be compatible. In your docker image, when you create the docker file,

代替使用FROM microsoft/aspnet

您应该使用FROM microsoft/aspnet:4.7.1-windowsservercore-10.0.14393.1884

在名称后加上图片标签,否则您将使用最新版本,该版本并不总是兼容的,应避免使用

with the image tag after the name, otherwise you will use the latest version, that is not always compatible and should be avoided

这篇关于找不到适用于Windows版本14393的良好docker映像的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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