Public Repository

Last pushed: 20 hours ago
Short Description
.NET Framework Docker Samples
Full Description

Supported tags and respective Dockerfile links

For more information about these images and their history, please see the relevant Dockerfile (microsoft/dotnet-framework-docker-samples). These images are updated via pull requests to the microsoft/dotnet-framework-docker GitHub repo.

.NET Framework Docker Samples

This repo contains samples that demonstrate various .NET Framework Docker configurations.

You can see the source for these samples at microsoft/dotnet-framework-samples on GitHub.

What is the .NET Framework?

The .NET Framework is a general purpose development platform maintained by Microsoft. It is the most popular way to build client and server applications for Windows and Windows Server. It is included with Windows, Windows Server and Windows Server Core. It includes server technologies such as ASP.NET Web Forms, ASP.NET MVC and Windows Communication Framework (WCF) applications, which you can run in Docker containers.

.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 web and client applications.

You can use C#, F# and VB to write .NET Framework apps. C# is simple, powerful, type-safe, and object-oriented while retaining the expressiveness and elegance of C-style languages. F# is a multi-paradigm programming language, enabling both functional and object-oriented patterns and practices. VB is a rapid development programming language with the deepest integration between the language and Visual Studio, providing the fastest path to a working app.

The .NET Framework was first released by Microsoft in 2001. The latest version is .NET Framework 4.6.2.

How to use these Images

Run a sample .NET Framework application within a container

The dotnetapp image is a sample application that depends on the .NET Framework Runtime image. You can run it in a container by running the following command.

docker run microsoft/dotnet-framework-samples

Image variants

The microsoft/dotnet-framework-samples images come in multiple flavors.


This image demonstrates the minimal use of the .NET Framework 4.6.2 image. It is not intended to be used as the base of another image, but purely used for demonstration purposes.


This image demonstrates the minimal use of the .NET Framework 3.5 image. It is not intended to be used as the base of another image, but purely used for demonstration purposes.

Related Repos

See the following related repos for other application types:


.NET Framework samples are licensed as MIT LICENSE.

Supported Docker versions

This image is officially supported on Docker version 1.12.2.

Please see the Docker installation documentation for details on how to upgrade your Docker daemon.

User Feedback


If you have any problems with or questions about this image, please contact us through a GitHub issue.


You are invited to contribute new samples, 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.


You can read documentation for using the .NET Framework with Docker usage in the .NET docs. The docs are open source on GitHub. Contributions are welcome!

Docker Pull Command

Comments (0)