1
4
Login
Code
Issues
2
Pull requests
Events
Packages
0bb8909e915449b1c97217ef0ead0b9d17d4d6ad
0bb8909e915449b1c97217ef0ead0b9d17d4d6ad
Name
Commit
Updated at
dotnetapp
README.md

.NET container samples

The following samples and guidance demonstrate how to use .NET and Docker for development, testing and production. You can use the samples for learning about containers or as the basis of your own container images.

Kubernetes samples are provided in the kubernetes directory.

[!IMPORTANT]

.NET 9 containers breaking changes

.NET 8 containers breaking changes

Building images

Development guidance

Hosting guidance

Other documentation

Try pre-built images

The following commands will run a .NET console app in a container:

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

The following command will run an ASP.NET Core console app in a container that you can access in your web browser at http://localhost:8000.

docker run --rm -it -p 8000:8080 mcr.microsoft.com/dotnet/samples:aspnetapp

Docker Repositories