Looking for the path to package an asp.net app in IIS in a docker container.

The docs/examples we have seen so far show how to package a windows application (and by extension, windows service) in a docker container:

From that, we can see how to package an apache server along with our app in a docker container.

But what we do not see are docs / vision to embed IIS instance (with our app installed in it) in a docker container.

Where to find such docs/examples?

(We have an asp.net app on IIS 8.5 / .NET 4.51)

  • You are referring to the "technical preview" of Windows Server 2016? – Bryan Sep 3 '15 at 13:14
  • @Bryan I am asking "how to do Z?" The answer might be: "Use Windows version X, and follow doc Y" (or whatever). I am just asking the question... you tell me the answer! – samsmith Sep 3 '15 at 15:50
  • 1
    Well, that's very generous of you; if you could just expand a little on "I see how to package a windows service in a docker container" - where did you see that; was it referring to the technical preview or some other version of Windows? – Bryan Sep 4 '15 at 17:23
  • @Bryan Sorry, You are right. I should have had a bit more background on there. OP enhanced. – samsmith Sep 4 '15 at 19:33
  • Thanks. The docker.com link relates to running Linux-based containers, albeit from a Windows client. I recommend blog.docker.com/2015/08/tp-docker-engine-windows-server-2016 for an update and weblogs.asp.net/scottgu/… for more recent info on Windows Server containers. – Bryan Sep 7 '15 at 12:50

It looks like this is what you are after:


Sample to create a Windows Server Container Image with IIS 10.0 enabled

These samples were created for Windows Server 2016 Technical Preview 3 with Containers. They assume that the WindowsServerCore Container base image is present.

  • Yup, at this time, the only way to create a windows docker image is to use Win2016-CTP3 and steps like those documented. – samsmith Oct 23 '15 at 16:45

The sample Bryan posted is a great resource (that's the Hyper-V GitHub account so we do track issues and requests there).

In addition, we used IIS as the default workload for our Windows Server Container and Hyper-V Container quickstart guides. Here are step by step instructions for Server TP4: https://msdn.microsoft.com/en-us/virtualization/windowscontainers/quick_start/manage_docker.

  • The link is broken, do you have another? – TombMedia Mar 6 '17 at 17:03

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.