Skip to content

Latest commit

 

History

History
 
 

samples

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

.NET Core Docker Samples

The samples show various ways to use .NET Core and Docker together. You can use the samples as the basis of your own Docker images or just to play.

The samples exercise various levels of functionality. The .NET Core Docker sample includes the most functionality, including build, unit testing, and pushing images to a container registry. The ASP.NET Core Docker sample includes instructions for testing images with Azure Container Instances. The samples include detailed instructions for use with and without Docker.

Try a pre-built .NET Core Docker Image

You can quickly try a pre-built sample .NET Core Docker image, based on the .NET Core sample.

Type the following command to run a sample with Docker:

docker run --rm microsoft/dotnet-samples

Building .NET Core Apps with Docker

Develop .NET Core Apps in a Container

  • Develop .NET Core Applications - This sample shows how to develop, build and test .NET Core applications with Docker without the need to install the .NET Core SDK.
  • Develop ASP.NET Core Applications - This sample shows how to develop and test ASP.NET Core applications with Docker without the need to install the .NET Core SDK.

Push Images to a Container Registry

Optimizing Container Size

ARM32 / Raspberry Pi

.NET Core Resources

More Samples

Docs and More Information:

Related Repositories

.NET Core Docker Hub repos:

.NET Framework Docker Hub repos: