Can't find a good docker image for windows version 14393

拜拜、爱过 提交于 2019-12-11 17:47:58

问题


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.

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.

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.


回答1:


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.

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

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.

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,

Instead of using FROM microsoft/aspnet

you should use 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



来源:https://stackoverflow.com/questions/52671181/cant-find-a-good-docker-image-for-windows-version-14393

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!