What is the difference between IIS &Aspnet Containers?

I want to containerize my ASP.Net Framework 4.6 application and I see the following base Images

  1. aspnet:4.8-20191210-windowsservercore-ltsc201
  2. 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:


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

0 0 votes
Article Rating
Subscribe
Notify of
guest

0 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x