dotnet-docker/samples
Igor Lyadov cb85477c06
Update selecting-tags.md (#4018)
2022-08-22 09:08:15 -05:00
..
aspnetapp Update samples to .NET 7 (#3989) 2022-08-16 07:31:36 -05:00
complexapp Update samples to .NET 7 (#3989) 2022-08-16 07:31:36 -05:00
dotnetapp Delete Windows Server 20H2 Dockerfiles (#3979) (#3983) 2022-08-16 10:21:51 -05:00
snippets Move snippets to documentation folder (#1884) 2020-05-05 10:03:19 -05:00
Directory.Build.props Update samples (#1538) 2020-01-14 14:46:27 -08:00
README.md Replace references to 'master' with 'main' (#2626) 2021-03-01 11:04:12 -06:00
build-in-sdk-container.md Update samples to .NET 7 (#3989) 2022-08-16 07:31:36 -05:00
deploy-container-to-aci.md Update docs to reference new .NET branding (#2383) 2020-11-10 11:43:52 -06:00
establishing-docker-environment.md Update docs to reference new .NET branding (#2383) 2020-11-10 11:43:52 -06:00
host-aspnetcore-https.md Update samples to .NET 7 (#3989) 2022-08-16 07:31:36 -05:00
push-image-to-acr.md Update docs to reference new .NET branding (#2383) 2020-11-10 11:43:52 -06:00
push-image-to-dockerhub.md Update docs to reference new .NET branding (#2383) 2020-11-10 11:43:52 -06:00
run-aspnetcore-https-development.md Replace references to 'master' with 'main' (#2626) 2021-03-01 11:04:12 -06:00
run-in-sdk-container.md Update samples to .NET 7 (#3989) 2022-08-16 07:31:36 -05:00
run-tests-in-sdk-container.md Update samples to .NET 7 (#3989) 2022-08-16 07:31:36 -05:00
selecting-tags.md Update selecting-tags.md (#4018) 2022-08-22 09:08:15 -05:00

README.md

.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: