Image2Docker may be the simplest path for getting your older .NET apps working on newer OSes.  It works by extracting either an entire VM or specific ‘artificats’ from a VM. 

An artifact can be a WebForms App running on .NET 2.0 on Windows 2003. This use case has been tested by the Image2Docker user community.

Steps to Dockerizing older .NET apps

The IIS module (artifact) in Image2Docker uses the ArtifactParam flag to specify a single IIS website to extract into a Dockerfile.

This allows the extraction of a workload (IIS/ASP.NET webapp) from a VM into a Docker Image (.vhd):

ConvertTo-Dockerfile -ImagePath C:\whereever\win-2016-iis.vhd -Artifact IIS -ArtifactParam aspnet-webforms -Verbose -OutputPath c:\whereever\aspnet-webforms

Anuj holds professional certifications in Google Cloud, AWS as well as certifications in Docker and App Performance Tools such as New Relic. He specializes in Cloud Security, Data Encryption and Container Technologies.

Initial Consultation

Anuj Varma – who has written posts on Anuj Varma, Hands-On Technology Architect, Clean Air Activist.