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 dotnet/announcements 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:
- dotnet/framework/sdk: .NET Framework SDK
- dotnet/framework/aspnet: ASP.NET Web Forms and MVC
- dotnet/framework/runtime: .NET Framework Runtime
- dotnet/framework/wcf: Windows Communication Foundation (WCF)
.NET:
- dotnet: .NET
- dotnet-nightly: .NET (Preview)
- dotnet/samples: .NET Samples
Tag | Dockerfile |
---|---|
dotnetapp-windowsservercore-20H2, dotnetapp, latest | Dockerfile |
aspnetapp-windowsservercore-20H2, aspnetapp | Dockerfile |
wcfservice-windowsservercore-20H2, wcfservice | Dockerfile |
wcfclient-windowsservercore-20H2, wcfclient | Dockerfile |
Tag | Dockerfile |
---|---|
dotnetapp-windowsservercore-2004, dotnetapp, latest | Dockerfile |
aspnetapp-windowsservercore-2004, aspnetapp | Dockerfile |
wcfservice-windowsservercore-2004, wcfservice | Dockerfile |
wcfclient-windowsservercore-2004, wcfclient | Dockerfile |
Tag | Dockerfile |
---|---|
dotnetapp-windowsservercore-1909, dotnetapp, latest | Dockerfile |
aspnetapp-windowsservercore-1909, aspnetapp | Dockerfile |
wcfservice-windowsservercore-1909, wcfservice | Dockerfile |
wcfclient-windowsservercore-1909, wcfclient | Dockerfile |
Tag | Dockerfile |
---|---|
dotnetapp-windowsservercore-ltsc2019, dotnetapp, latest | Dockerfile |
aspnetapp-windowsservercore-ltsc2019, aspnetapp | Dockerfile |
wcfservice-windowsservercore-ltsc2019, wcfservice | Dockerfile |
wcfclient-windowsservercore-ltsc2019, wcfclient | Dockerfile |
Tag | Dockerfile |
---|---|
dotnetapp-windowsservercore-ltsc2016, dotnetapp, latest | Dockerfile |
aspnetapp-windowsservercore-ltsc2016, aspnetapp | Dockerfile |
wcfservice-windowsservercore-ltsc2016, wcfservice | Dockerfile |
wcfclient-windowsservercore-ltsc2016, wcfclient | Dockerfile |
You can retrieve a list of all available tags for dotnet/framework/samples at https://mcr.microsoft.com/v2/dotnet/framework/samples/tags/list.
See the .NET Framework Lifecycle FAQ
- We update the supported .NET Framework images within 12 hours of any updates to their base images (e.g. windows/servercore:1909, windows/servercore:ltsc2019, etc.).
- We publish .NET Framework images as part of releasing new versions of .NET Framework including major/minor and servicing.
- Legal Notice: Container License Information
The .NET Framework images use the same license as the Windows Server Core base image.