AspNetCore:2.1 not found

They have changed the repo for .NET Core 2.1 onwards to microsoft/dotnet. Change your FROM statement to reference microsoft/dotnet using the following tags:

  • 2.1-sdk
  • 2.1-aspnetcore-runtime
  • 2.1-runtime

Documentation on how to upgrade can be found here


I had this issue as well. I thought I'd update this post to show the fix here. Thanks to Marius Bidireac for the link to the resource.

Here is an excerpt from the original docker file

FROM microsoft/aspnetcore:2.0 AS base

FROM microsoft/aspnetcore-build:2.0 AS build

Here is an excerpt from the corrected docker file

FROM microsoft/dotnet:2.1-aspnetcore-runtime AS base

FROM microsoft/dotnet:2.1-sdk AS build

Tags:

Docker