How is .Net Core runtime serviced when hosting in docker containers?

Andriy 21 Reputation points
2020-11-27T08:08:24.327+00:00

It's clear how the .Net Core runtime is serviced when deploying (shared framework deployment) to a "regular" hosting environment (e.g. azure app service). But how does this work with Docker containers? After all, the .Net runtime is part of the container image which I build and supply to the hosting environment.

Azure Container Instances
Azure Container Instances
An Azure service that provides customers with a serverless container experience.
643 questions
Azure Kubernetes Service (AKS)
Azure Kubernetes Service (AKS)
An Azure service that provides serverless Kubernetes, an integrated continuous integration and continuous delivery experience, and enterprise-grade security and governance.
1,867 questions
Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
6,910 questions
0 comments No comments
{count} votes

Accepted answer
  1. Ryan Hill 25,981 Reputation points Microsoft Employee
    2020-11-27T19:22:15.493+00:00

    Hi @Andriy ,

    The way .NET Core runtime is deployed to a regular hosting environment as you mentioned is the same way it's deployed to a Docker container. The main difference being .NET Core, or any framework for that matter, is installed and configured in the Dockerfile image.

    There are a host of docker images already setup with .NET Core that you can find over at https://hub.docker.com/_/microsoft-dotnet-runtime/ for either Windows or Linux OS based images. You can also see how those images were built on the docker dotnet repo.

    If I misunderstood your question about how .NET Core is incorporated into Docker, please comment below.

    EDIT: The team will use the repo I mentioned to apply servicing updates. Images tagged with latest will receive these servicing updates which you can observe here. When your docker file is read, the change in the base image (e.g. mcr.microsoft.com/dotnet/runtime:3.1) will be detected and docker will pull the latest image for that tag and rebuild it for you. This same base image update will occur in ACR or Web App for Containers unless you specify not to.

    Regards,
    Ryan


0 additional answers

Sort by: Most helpful