dotnet-docker/samples
Rich Lander 27ed26e141
Update Kubernetes samples (#5120)
Co-authored-by: rlander@microsoft.com <Rich Lander>
Co-authored-by: Logan Bussell <loganbussell@microsoft.com>
Co-authored-by: Matt Thalman <mthalman@microsoft.com>
2024-01-22 14:28:11 -08:00
..
aspnetapp Update Dockerfile.alpine (#5099) 2024-01-11 14:09:35 -08:00
complexapp Update samples to .NET 8 (#4742) 2023-09-14 09:07:03 -07:00
dotnetapp Fix Alpine ICU sample build (#4937) 2023-10-11 00:28:53 +00:00
globalapp Update samples to .NET 8 (#4742) 2023-09-14 09:07:03 -07:00
kubernetes Update Kubernetes samples (#5120) 2024-01-22 14:28:11 -08:00
releasesapi Update JSON schema (#5015) 2023-12-07 11:52:33 -08:00
releasesapp Update JSON schema (#5015) 2023-12-07 11:52:33 -08:00
snippets
Directory.Build.props
README.md Update README.md (#5073) 2024-01-03 08:17:18 -06:00
build-for-a-platform.md Add more instructions (#4413) 2023-02-17 14:45:43 -08:00
build-in-sdk-container.md Update port to 8080 (#5048) 2023-12-12 15:26:13 -08:00
deploy-container-to-aci.md
enable-globalization.md Update enable-globalization.md (#5067) 2024-01-02 09:09:14 -08:00
establishing-docker-environment.md
host-aspnetcore-https.md Update ASP.NET Core https docs to match credential placeholders **BYPASS_SECRET_SCANNING** 2024-01-03 11:03:03 -05:00
push-image-to-acr.md Update port to 8080 (#5048) 2023-12-12 15:26:13 -08:00
push-image-to-dockerhub.md
run-aspnetcore-https-development.md Update port to 8080 (#5048) 2023-12-12 15:26:13 -08:00
run-in-sdk-container.md Update port to 8080 (#5048) 2023-12-12 15:26:13 -08:00
run-tests-in-sdk-container.md Update port to 8080 (#5048) 2023-12-12 15:26:13 -08:00
selecting-tags.md Update Dockerfiles for 7.0.200 and remove `PublishSingleFile` (#4534) 2023-04-04 10:13:07 -07:00

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.

Note: Samples ports and users are changing, with .NET 8
Breaking change: dotnet/samples port and user changing

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

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