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
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…