2.2
(Current)docker pull mcr.microsoft.com/dotnet/core/aspnet:2.2
2.1
(LTS)docker pull mcr.microsoft.com/dotnet/core/aspnet:2.1
This image contains the ASP.NET Core and .NET Core runtimes and libraries and is optimized for running ASP.NET Core apps in production.
Watch dotnet/announcements for Docker-related .NET announcements.
The .NET Core Docker samples show various ways to use .NET Core and Docker together. See Building Docker Images for .NET Core Applications to learn more.
You can quickly run a container with a pre-built .NET Core Docker image, based on the ASP.NET Core sample.
Type the following command to run a sample web application:
docker run -it --rm -p 8000:80 --name aspnetcore_sample mcr.microsoft.com/dotnet/core/samples:aspnetapp
After the application starts, navigate to http://localhost:8000
in your web browser. On Windows, you may need to navigate to the container via IP address. See ASP.NET Core apps in Windows Containers for instructions on determining the IP address, using the value of --name
that you used in docker run
.
See Hosting ASP.NET Core Images with Docker over HTTPS to use HTTPS with this image.
.NET Core:
- dotnet/core: .NET Core
- dotnet/core/sdk: .NET Core SDK
- dotnet/core/runtime: .NET Core Runtime
- dotnet/core/runtime-deps: .NET Core Runtime Dependencies
- dotnet/core/samples: .NET Core Samples
- dotnet/core-nightly: .NET Core (Preview)
.NET Framework:
- dotnet/framework/aspnet: ASP.NET Web Forms and MVC
- microsoft/dotnet-framework: .NET Framework
- microsoft/dotnet-framework-samples: .NET Framework and ASP.NET Samples
2.2.2-stretch-slim
,2.2-stretch-slim
,2.2.2
,2.2
,latest
(Dockerfile)2.2.2-alpine3.8
,2.2-alpine3.8
,2.2.2-alpine
,2.2-alpine
(Dockerfile)2.2.2-bionic
,2.2-bionic
(Dockerfile)2.1.8-stretch-slim
,2.1-stretch-slim
,2.1.8
,2.1
(Dockerfile)2.1.8-alpine3.7
,2.1-alpine3.7
,2.1.8-alpine
,2.1-alpine
(Dockerfile)2.1.8-bionic
,2.1-bionic
(Dockerfile)
.NET Core 3.0 Preview tags
3.0.0-preview2-stretch-slim
,3.0-stretch-slim
,3.0.0-preview2
,3.0
(Dockerfile)3.0.0-preview2-alpine3.8
,3.0-alpine3.8
,3.0.0-preview2-alpine
,3.0-alpine
(Dockerfile)3.0.0-preview2-bionic
,3.0-bionic
(Dockerfile)
.NET Core 3.0 Preview tags
3.0.0-preview2-stretch-slim-arm64v8
,3.0-stretch-slim-arm64v8
,3.0.0-preview2
,3.0
(Dockerfile)3.0.0-preview2-bionic-arm64v8
,3.0-bionic-arm64v8
(Dockerfile)
2.2.2-stretch-slim-arm32v7
,2.2-stretch-slim-arm32v7
,2.2.2
,2.2
,latest
(Dockerfile)2.2.2-bionic-arm32v7
,2.2-bionic-arm32v7
(Dockerfile)2.1.8-stretch-slim-arm32v7
,2.1-stretch-slim-arm32v7
,2.1.8
,2.1
(Dockerfile)2.1.8-bionic-arm32v7
,2.1-bionic-arm32v7
(Dockerfile)
.NET Core 3.0 Preview tags
3.0.0-preview2-stretch-slim-arm32v7
,3.0-stretch-slim-arm32v7
,3.0.0-preview2
,3.0
(Dockerfile)3.0.0-preview2-bionic-arm32v7
,3.0-bionic-arm32v7
(Dockerfile)
2.2.2-nanoserver-1809
,2.2-nanoserver-1809
,2.2.2
,2.2
,latest
(Dockerfile)2.1.8-nanoserver-1809
,2.1-nanoserver-1809
,2.1.8
,2.1
(Dockerfile)
.NET Core 3.0 Preview tags
2.2.2-nanoserver-1803
,2.2-nanoserver-1803
,2.2.2
,2.2
,latest
(Dockerfile)2.1.8-nanoserver-1803
,2.1-nanoserver-1803
,2.1.8
,2.1
(Dockerfile)
.NET Core 3.0 Preview tags
2.2.2-nanoserver-1709
,2.2-nanoserver-1709
,2.2.2
,2.2
,latest
(Dockerfile)2.1.8-nanoserver-1709
,2.1-nanoserver-1709
,2.1.8
,2.1
(Dockerfile)
.NET Core 3.0 Preview tags
2.2.2-nanoserver-sac2016
,2.2-nanoserver-sac2016
,2.2.2
,2.2
,latest
(Dockerfile)2.1.8-nanoserver-sac2016
,2.1-nanoserver-sac2016
,2.1.8
,2.1
(Dockerfile)
.NET Core 3.0 Preview tags
.NET Core 3.0 Preview tags
For more information about these images and their history, please see the relevant Dockerfile. These images are updated via pull requests to the dotnet/dotnet-docker
GitHub repo.
See Microsoft Support for .NET Core for the support lifecycle.
- File a .NET Core Docker issue
- File a .NET Core issue
- File an ASP.NET Core issue
- File an issue for other components
- Ask on Stack Overflow
- Contact Microsoft Support
- .NET Core license
- Windows Nano Server license (only applies to Windows containers)
- Pricing and licensing for Windows Server 2019