2.0.6-sdk-2.1.101-stretch
,2.0-sdk-stretch
,2.0.6-sdk-2.1.101
,2.0-sdk
,2-sdk
,sdk
,latest
(2.0/sdk/stretch/amd64/Dockerfile)2.0.6-sdk-2.1.101-jessie
,2.0-sdk-jessie
,2-sdk-jessie
(2.0/sdk/jessie/amd64/Dockerfile)2.0.6-runtime-stretch
,2.0-runtime-stretch
,2.0.6-runtime
,2.0-runtime
,2-runtime
,runtime
(2.0/runtime/stretch/amd64/Dockerfile)2.0.6-runtime-jessie
,2.0-runtime-jessie
,2-runtime-jessie
(2.0/runtime/jessie/amd64/Dockerfile)2.0.6-runtime-deps-stretch
,2.0-runtime-deps-stretch
,2.0.6-runtime-deps
,2.0-runtime-deps
,2-runtime-deps
,runtime-deps
(2.0/runtime-deps/stretch/amd64/Dockerfile)2.0.6-runtime-deps-jessie
,2.0-runtime-deps-jessie
,2-runtime-deps-jessie
(2.0/runtime-deps/jessie/amd64/Dockerfile)1.1.7-sdk-1.1.8-jessie
,1.1.7-sdk-1.1.8
,1.1-sdk
,1-sdk
(1.1/sdk/jessie/amd64/Dockerfile)1.1.7-runtime-jessie
,1.1.7-runtime
,1.1-runtime
,1-runtime
(1.1/runtime/jessie/amd64/Dockerfile)1.0.10-runtime-jessie
,1.0.10-runtime
,1.0-runtime
(1.0/runtime/jessie/amd64/Dockerfile)1.0.10-runtime-deps-jessie
,1.0.10-runtime-deps
,1.0-runtime-deps
,1-runtime-deps
(1.0/runtime-deps/jessie/amd64/Dockerfile)
.NET Core 2.1 Preview 1 tags
2.1.300-preview1-sdk-stretch
,2.1-sdk-stretch
,2.1.300-preview1-sdk
,2.1-sdk
(2.1/sdk/stretch/amd64/Dockerfile)2.1.300-preview1-sdk-alpine
,2.1-sdk-alpine
(2.1/sdk/alpine/amd64/Dockerfile)2.1.300-preview1-sdk-bionic
,2.1-sdk-bionic
(2.1/sdk/bionic/amd64/Dockerfile)2.1.0-preview1-runtime-stretch-slim
,2.1-runtime-stretch-slim
,2.1.0-preview1-runtime
,2.1-runtime
(2.1/runtime/stretch-slim/amd64/Dockerfile)2.1.0-preview1-runtime-alpine
,2.1-runtime-alpine
(2.1/runtime/alpine/amd64/Dockerfile)2.1.0-preview1-runtime-bionic
,2.1-runtime-bionic
(2.1/runtime/bionic/amd64/Dockerfile)2.1.0-preview1-runtime-deps-stretch-slim
,2.1-runtime-deps-stretch-slim
,2.1.0-preview1-runtime-deps
,2.1-runtime-deps
(2.1/runtime-deps/stretch-slim/amd64/Dockerfile)2.1.0-preview1-runtime-deps-alpine
,2.1-runtime-deps-alpine
(2.1/runtime-deps/alpine/amd64/Dockerfile)2.1.0-preview1-runtime-deps-bionic
,2.1-runtime-deps-bionic
(2.1/runtime-deps/bionic/amd64/Dockerfile)
2.0.6-sdk-2.1.101-nanoserver-1709
,2.0-sdk-nanoserver-1709
,2.0.6-sdk-2.1.101
,2.0-sdk
,2-sdk
,sdk
,latest
(2.0/sdk/nanoserver-1709/amd64/Dockerfile)2.0.6-runtime-nanoserver-1709
,2.0-runtime-nanoserver-1709
,2.0.6-runtime
,2.0-runtime
,2-runtime
,runtime
(2.0/runtime/nanoserver-1709/amd64/Dockerfile)
.NET Core 2.1 Preview 1 tags
2.1.300-preview1-sdk-nanoserver-1709
,2.1-sdk-nanoserver-1709
,2.1.300-preview1-sdk
,2.1-sdk
(2.1/sdk/nanoserver-1709/amd64/Dockerfile)2.1.0-preview1-runtime-nanoserver-1709
,2.1-runtime-nanoserver-1709
,2.1.0-preview1-runtime
,2.1-runtime
(2.1/runtime/nanoserver-1709/amd64/Dockerfile)
2.0.6-sdk-2.1.101-nanoserver-sac2016
,2.0-sdk-nanoserver-sac2016
,2.0.6-sdk-2.1.101
,2.0-sdk
,2-sdk
,sdk
,latest
(2.0/sdk/nanoserver-sac2016/amd64/Dockerfile)2.0.6-runtime-nanoserver-sac2016
,2.0-runtime-nanoserver-sac2016
,2.0.6-runtime
,2.0-runtime
,2-runtime
,runtime
(2.0/runtime/nanoserver-sac2016/amd64/Dockerfile)1.1.7-sdk-1.1.8-nanoserver-sac2016
,1.1.7-sdk-1.1.8
,1.1-sdk
,1-sdk
(1.1/sdk/nanoserver-sac2016/amd64/Dockerfile)1.1.7-runtime-nanoserver-sac2016
,1.1.7-runtime
,1.1-runtime
,1-runtime
(1.1/runtime/nanoserver-sac2016/amd64/Dockerfile)1.0.10-runtime-nanoserver-sac2016
,1.0.10-runtime
,1.0-runtime
(1.0/runtime/nanoserver-sac2016/amd64/Dockerfile)
.NET Core 2.1 Preview 1 tags
2.1.300-preview1-sdk-nanoserver-sac2016
,2.1-sdk-nanoserver-sac2016
,2.1.300-preview1-sdk
,2.1-sdk
(2.1/sdk/nanoserver-sac2016/amd64/Dockerfile)2.1.0-preview1-runtime-nanoserver-sac2016
,2.1-runtime-nanoserver-sac2016
,2.1.0-preview1-runtime
,2.1-runtime
(2.1/runtime/nanoserver-sac2016/amd64/Dockerfile)
2.0.6-runtime-stretch-arm32v7
,2.0-runtime-stretch-arm32v7
,2.0.6-runtime
,2.0-runtime
,2-runtime
,runtime
(2.0/runtime/stretch/arm32v7/Dockerfile)2.0.6-runtime-deps-stretch-arm32v7
,2.0-runtime-deps-stretch-arm32v7
,2.0.6-runtime-deps
,2.0-runtime-deps
,2-runtime-deps
,runtime-deps
(2.0/runtime-deps/stretch/arm32v7/Dockerfile)
.NET Core 2.1 Preview 1 tags
2.1.0-preview1-runtime-stretch-slim-arm32v7
,2.1-runtime-stretch-slim-arm32v7
,2.1.0-preview1-runtime
,2.1-runtime
(2.1/runtime/stretch-slim/arm32v7/Dockerfile)2.1.0-preview1-runtime-bionic-arm32v7
,2.1-runtime-bionic-arm32v7
(2.1/runtime/bionic/arm32v7/Dockerfile)2.1.0-preview1-runtime-deps-stretch-slim-arm32v7
,2.1-runtime-deps-stretch-slim-arm32v7
,2.1.0-preview1-runtime-deps
,2.1-runtime-deps
(2.1/runtime-deps/stretch-slim/arm32v7/Dockerfile)2.1.0-preview1-runtime-deps-bionic-arm32v7
,2.1-runtime-deps-bionic-arm32v7
(2.1/runtime-deps/bionic/arm32v7/Dockerfile)
Note: .NET Core multi-arch tags, such as 2.0-runtime, have been updated to use nanoserver-1709 images if your host is Windows Server 2016 Version 1709 or higher or Windows 10 Fall Creators Update (Version 1709) or higher. You need Docker 17.10 or later to take advantage of these updated tags.
Note: The Docker images in this repo are supported by Microsoft. The
arm32v7
images are in preview and have "best effort" support only by the community and .NET Core Team. Please see the arm32 announcement for more details.
Note: Watch dotnet/announcements for Docker-related .NET Core announcements.
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.
.NET Core is a general purpose development platform maintained by Microsoft and the .NET community on GitHub. It is cross-platform, supporting Windows, macOS and Linux, and can be used in device, cloud, and embedded/IoT scenarios.
.NET has several capabilities that make development easier, including automatic memory management, (runtime) generic types, reflection, asynchrony, concurrency, and native interop. Millions of developers take advantage of these capabilities to efficiently build high-quality applications.
You can use C# to write .NET Core apps. C# is simple, powerful, type-safe, and object-oriented while retaining the expressiveness and elegance of C-style languages. Anyone familiar with C and similar languages will find it straightforward to write in C#.
.NET Core is open source (MIT and Apache 2 licenses) and was contributed to the .NET Foundation by Microsoft in 2014. It can be freely adopted by individuals and companies, including for personal, academic or commercial purposes. Multiple companies use .NET Core as part of apps, tools, new platforms and hosting services.
You can quickly try a pre-built sample .NET Core Docker image that uses these images.
Type the following command to run a sample console application with Docker:
docker run --rm microsoft/dotnet-samples
You can quickly try a pre-built sample ASP.NET Core Docker image that uses these images.
Type the following command to run a sample web application with Docker:
docker run --rm -p 8000:80 --name aspnetcore_sample microsoft/dotnet-samples:aspnetapp
After the application starts, navigate to http://localhost:8000
in your web browser. You need to navigate to the application via IP address instead of localhost
for Windows containers, which is demonstrated in View the ASP.NET Core app in a running container on Windows.
The .NET Core Docker samples show various ways to use .NET Core and Docker together.
- .NET Core Docker Sample - This sample builds, tests, and runs the sample. It includes and builds multiple projects.
- ASP.NET Core Docker Sample - This sample demonstrates using Docker with an ASP.NET Core Web App.
- .NET Core Alpine Docker Sample - This sample builds, tests, and runs an application using Alpine.
- .NET Core self-contained Sample - This sample builds and runs an application as a self-contained application.
- .NET Core ARM32 Docker Sample - This sample builds and runs an application with Debian on ARM32 (works on Raspberry Pi).
- ASP.NET Core ARM32 Docker Sample - This sample builds and runs an ASP.NET Core application with Debian on ARM32 (works on Raspberry Pi).
The microsoft/dotnet
images come in different flavors, each designed for a specific use case.
See Building Docker Images for .NET Core Applications to learn more about the various Docker images and when to use each for them.
This is the defacto image. If you are unsure about what your needs are, you probably want to use this one. It is designed to be used both as a throw away container (mount your source code and start the container to start your app), as well as the base to build other images off of.
It contains the .NET Core SDK which is comprised of two parts:
- .NET Core
- .NET Core command line tools
Use this image for your development process (developing, building and testing applications).
This image contains the .NET Core (runtime and libraries) and is optimized for running .NET Core apps in production.
This image contains the operating system with all of the native dependencies needed by .NET Core. This is for self-contained applications.
.NET Core Docker Hub repos:
- microsoft/aspnetcore for ASP.NET Core images.
- microsoft/dotnet-nightly for .NET Core preview images.
- microsoft/dotnet-samples for .NET Core sample images.
.NET Framework Docker Hub repos:
- microsoft/aspnet for ASP.NET Web Forms and MVC images.
- microsoft/dotnet-framework for .NET Framework images.
- microsoft/dotnet-framework-build for building .NET Framework applications with Docker.
- microsoft/dotnet-framework-samples for .NET Framework and ASP.NET sample images.
View license information for the software contained in this image.
The .NET Core Windows images use the same license as the Windows Server 2016 Nano Server base image, as follows:
MICROSOFT SOFTWARE SUPPLEMENTAL LICENSE TERMS
CONTAINER OS IMAGE
Microsoft Corporation (or based on where you live, one of its affiliates) (referenced as “us,” “we,” or “Microsoft”) licenses this Container OS Image supplement to you (“Supplement”). You are licensed to use this Supplement in conjunction with the underlying host operating system software (“Host Software”) solely to assist running the containers feature in the Host Software. The Host Software license terms apply to your use of the Supplement. You may not use it if you do not have a license for the Host Software. You may use this Supplement with each validly licensed copy of the Host Software.
Supported Docker versions: the latest release (down to 1.12.2 on a best-effort basis)
Please see the Docker installation documentation for details on how to upgrade your Docker daemon.
If you have any problems with or questions about this image, please contact us through a GitHub issue.
You are invited to contribute new features, fixes, or updates, large or small; we are always thrilled to receive pull requests, and do our best to process them as fast as we can.
Before you start to code, please read the .NET Core contribution guidelines.
You can read documentation for .NET Core, including Docker usage in the .NET Core docs. The docs are open source on GitHub. Contributions are welcome!