16
CHAPTER 2 | Choosing Between .NET and .NET Framework for Docker Containers
Comments
mcr.microsoft.com/dotnet/aspnet:7.0-
nanoserver-1809
.NET 7 runtime-only on Windows Nano Server
(Windows Server version 1809)
Official .NET Docker
images
The Official .NET Docker images are Docker images created and optimized by Microsoft. They are
publicly available on
Microsoft
Artifact Registry
. You can search over the catalog to find all .NET image
repositories, for example
.NET SDK
repository.
Each repository can contain multiple images, depending on .NET versions,
and depending on the OS
and versions (Linux Debian, Linux Alpine, Windows Nano Server, Windows
Server Core, and so on).
Image repositories provide extensive tagging to help you select not just a specific framework version,
but also to choose an OS (Linux distribution or Windows version).
.NET and Docker image optimizations for development versus
production
When building Docker images for developers, Microsoft focused on the following main scenarios:
•
Images used to
develop
and build .NET apps.
•
Images used to
run
.NET apps.
Why multiple images? When developing, building, and running containerized applications, you usually
have different priorities. By providing different images
for these separate tasks, Microsoft helps
optimize the separate processes
of developing, building, and deploying apps.
Dostları ilə paylaş: