microsoft/dotnet-framework-samples
dotnet/framework/samples
Sample images illustrating how to containerize .NET Framework, ASP.NET and WCF applications
dotnetapp
docker pull mcr.microsoft.com/dotnet/framework/samples:dotnetapp
aspnetapp
docker pull mcr.microsoft.com/dotnet/framework/samples:aspnetapp
wcfservice
docker pull mcr.microsoft.com/dotnet/framework/samples:wcfservice
wcfclient
docker pull mcr.microsoft.com/dotnet/framework/samples:wcfclient
These images contain sample .NET Framework, ASP.NET and WCF applications.
Watch discussions for Docker-related .NET announcements.
The .NET Framework Docker samples show various ways to use .NET Framework and Docker together.
Type the following command to run a sample console application with Docker:
docker run --rm mcr.microsoft.com/dotnet/framework/samples:dotnetapp
Type the following command to run a sample web application with Docker:
docker run -it --rm -p 8000:80 --name aspnet_sample 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.
Type the following command to run a sample WCF service application with Docker:
docker run -it --rm --name wcfservice_sample mcr.microsoft.com/dotnet/framework/samples:wcfservice
After the container starts, find the IP address of the container instance:
docker inspect --format="{{.NetworkSettings.Networks.nat.IPAddress}}" wcfservice_sample
172.26.236.119
Type the following Docker command to start a WCF client container, set environment variable HOST to the IP address of the wcfservice_sample container:
docker run --name wcfclient_sample --rm -it -e HOST=172.26.236.119 mcr.microsoft.com/dotnet/framework/samples:wcfclient
.NET Framework:
.NET:
View the current tags at the Microsoft Artifact Registry portal or on GitHub.
docker pull mcr.microsoft.com/dotnet/framework/samples