Skip to content

Latest commit

 

History

History
51 lines (34 loc) · 2.11 KB

README.md

File metadata and controls

51 lines (34 loc) · 2.11 KB

.NET Docker samples

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

Building images

Development guidance

Hosting guidance

Scenario guidance

You can find tips and tricks, best practices, and samples of commonly used technology in the .NET Docker scenarios 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:80 mcr.microsoft.com/dotnet/samples:aspnetapp

Docker Repositories

You can find .NET container images at the following Docker repositories: