From 4a7c0efb09321be20107ea4305175e979540a3fd Mon Sep 17 00:00:00 2001 From: Oleg Burov Date: Thu, 6 Jun 2019 04:46:26 -0700 Subject: [PATCH] Update from microsoft/* to mcr.microsoft.com/*. (#8738) Update Dockerfile with following changes: 1. Switch .NET Core Images from legacy location at Docker Hub Registry (microsoft/*) to a new location at Microsoft Container Registry (mcr.microsoft.com/*). 2. Since Microsoft no longer supports the tag 'latest', I must set a specific version of '2.2' (current), which is the most recent stable release. --- engine/examples/dotnetcore.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/engine/examples/dotnetcore.md b/engine/examples/dotnetcore.md index 38facac14b..20542d5964 100644 --- a/engine/examples/dotnetcore.md +++ b/engine/examples/dotnetcore.md @@ -41,7 +41,7 @@ Windows](/docker-for-windows/). Read more on [switching containers](/docker-for- the `Dockerfile` to use the DLL file of your project. ```dockerfile -FROM microsoft/dotnet:sdk AS build-env +FROM mcr.microsoft.com/dotnet/core/sdk:2.2 AS build-env WORKDIR /app # Copy csproj and restore as distinct layers @@ -53,7 +53,7 @@ COPY . ./ RUN dotnet publish -c Release -o out # Build runtime image -FROM microsoft/dotnet:aspnetcore-runtime +FROM mcr.microsoft.com/dotnet/core/aspnet:2.2 WORKDIR /app COPY --from=build-env /app/out . ENTRYPOINT ["dotnet", "aspnetapp.dll"]