Docker images for ASP.NET Core | Microsoft dotnet Docker
Article 11/09/2023 22contributors Feedback Inthisarticle ThisarticleshowshowtorunanASP.NETCoreappinDockercontainers.WindowsHomeEditiondoesntsupportHyper-V,andHyper-VisneededforDocker.SeeContainerizea.NETappwithdotnetpublish[1]forinformationoncontainerizeda.NETappwithdotnetpublish.ASP.NETCoreDockerimagesForthistutorial,youdownloadanASP.NETCoresampleappandrunitinDockercontainers.ThesampleworkswithbothLinuxandW...
Article 11/09/2023 22 contributorsFeedback
In this articleThis article shows how to run an ASP.NET Core app in Docker containers.
Windows Home Edition doesnt support Hyper-V, and Hyper-V is needed for Docker.
See Containerize a .NET app with dotnet publish[1] for information on containerized a .NET app with dotnet publish.
ASP.NET Core Docker imagesFor this tutorial, you download an ASP.NET Core sample app and run it in Docker containers. The sample works with both Linux and Windows containers.
The sample Dockerfile uses the Docker multi-stage build feature[2] to build and run in different containers. The build and run ...