I want to containerize my ASP.Net Framework 4.6 application and I see the following base Images
- aspnet:4.8-20191210-windowsservercore-ltsc201
- iis:windowsservercore-ltsc2019
What is the difference between those? which is the one to be used to containerize the ASP.Net Framework 4.6 application
Answers:
Thank you for visiting the Q&A section on Magenaut. Please note that all the answers may not help you solve the issue immediately. So please treat them as advisements. If you found the post helpful (or not), leave a comment & I’ll get back to you as soon as possible.
Method 1
As you can see in these two docker files, the main difference is the availaibility of dotnet framework. aspnet image has the framework installed while iis one doesn’t. You should use aspnet base container so that you wouldn’t have to install the framework in the container yourself.
Some helpful links:
- What OS to target with .NET containers
- Migrating ASP.NET MVC Applications to Windows Containers
- Modernizing Traditional .NET Apps with Docker
All methods was sourced from stackoverflow.com or stackexchange.com, is licensed under cc by-sa 2.5, cc by-sa 3.0 and cc by-sa 4.0