Microsoft has been investing in running docker on windows with Docker Desktop for Windows. Is it possible to run a legacy ASP Classic application on IIS through
I haven't tried, but it shouldn't be an issue to run classic ASP. The microsoft/iis
image is based from the microsoft/windowsservercore
image, which is a full Server Core install, and also includes 32-bit support.
The ASP feature won't be there by default, so your Dockerfile would have to start like this:
# escape=`
FROM microsoft/iis
SHELL ["powershell", "-command"]
RUN Install-WindowsFeature Web-ASP
(The escape
and SHELL
lines just make it easier to build Windows-friendy Dockerfiles, see Windows, Dockerfiles and the Backtick Backslash Backlash).
Then you would COPY
in your ASP app folder, and run the rest of your IIS setup with PowerShell commands. This question has some good pointers, and this Dockerfile for an ASP.NET app shows how you can use PowerShell to configure websites.