microsoft/dotnet-runtime
dotnet/runtime
Official images for the .NET runtime
9.0
(Standard Support)
docker pull mcr.microsoft.com/dotnet/runtime:9.0
8.0
(Long-Term Support)
docker pull mcr.microsoft.com/dotnet/runtime:8.0
This image contains the .NET runtimes and libraries and is optimized for running .NET apps in production.
Watch discussions for Docker-related .NET announcements.
The .NET Docker samples show various ways to use .NET and Docker together. See Building Docker Images for .NET Applications to learn more.
You can quickly run a container with a pre-built .NET Docker image, based on the .NET console sample.
Type the following command to run a sample console application:
docker run --rm mcr.microsoft.com/dotnet/samples
.NET container images have several variants that offer different combinations of flexibility and deployment size. The Image Variants documentation contains a summary of the image variants and their use-cases.
.NET distroless container images contain only the minimal set of packages .NET needs, with everything else removed. Due to their limited set of packages, distroless containers have a minimized security attack surface, smaller deployment sizes, and faster start-up time compared to their non-distroless counterparts. They contain the following features:
.NET offers distroless images for Azure Linux and Ubuntu (Chiseled).
.NET:
.NET Framework:
View the current tags at the Microsoft Artifact Registry portal or on GitHub.
.NET container images are regularly monitored for the presence of CVEs. A given image will be rebuilt to pick up fixes for a CVE when:
Please refer to the Security Policy and Container Vulnerability Workflow for more detail about what to do when a CVE is encountered in a .NET image.
docker pull mcr.microsoft.com/dotnet/runtime