Skip to content

Latest commit

 

History

History
69 lines (44 loc) · 3.71 KB

README.md

File metadata and controls

69 lines (44 loc) · 3.71 KB

.NET Framework Docker Samples

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

The samples demonstrate basic functionality. The .NET Docker Samples exercise more functionality, most of which can be applied to .NET Framework apps.

Try a pre-built .NET Framework Docker Image

You can quickly run a container with a pre-built .NET Framework Docker image, based on the .NET Framework console sample.

Type the following Docker command:

docker run --rm mcr.microsoft.com/dotnet/framework/samples

Try a pre-built ASP.NET Docker Image

You can quickly run a container with a pre-built sample ASP.NET Docker image, based on the ASP.NET Docker sample.

Type the following Docker command:

docker run --name aspnet_sample --rm -it -p 8000:80 mcr.microsoft.com/dotnet/framework/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 earlier Windows versions, which is demonstrated in View the ASP.NET app in a running container on Windows.

Building .NET Framework Apps with Docker

Push Images to a Container Registry

.NET Resources

More Samples

Docs and More Information:

Related Docker Hub Repos

.NET Framework:

.NET: