Choosing Between .NET and .NET Framework for Docker Containers .............................. 9
General guidance ..................................................................................................................................................................... 9
When to choose .NET for Docker containers ............................................................................................................. 10
Developing and deploying cross platform ............................................................................................................ 10
Using containers for new (“green
-
field”) projects
............................................................................................... 11
Create and deploy microservices on containers .................................................................................................. 11
Deploying high density in scalable systems .......................................................................................................... 11
When to choose .NET Framework for Docker containers ..................................................................................... 12
Migrating existing applications directly to a Windows Server container .................................................. 12
Using third-party .NET libraries or NuGet packages not available for .NET 7 ......................................... 12
Using .NET technologies not available for .NET 7 ............................................................................................... 12
Using a platform or API that doesn’t support .NET 7
........................................................................................ 13
Porting existing ASP.NET application to .NET 7 ................................................................................................... 13
Decision table: .NET implementations to use for Docker ..................................................................................... 13
What OS to target with .NET containers ...................................................................................................................... 14
Official .NET Docker images ............................................................................................................................................. 16
.NET and Docker image optimizations for development versus production ........................................... 16