Ever since Microsoft updated docker in August from FROM microsoft/
to FROM mcr.microsoft.com/
, my docker file is not built using Jenkins.
// this is what edited docker file looks like
FROM mcr.microsoft.com/dotnet/sdk:2.1 AS build
...
FROM mcr.microsoft.com/dotnet/sdk:2.1
I followed this article to update my docker file.
However this solution also occurs the error when I build docker in Jenkins.
Step 1/10 : FROM mcr.microsoft.com/aspnetcore-build:2 AS build manifest for mcr.microsoft.com/aspnetcore-build:2 not found: manifest unknown: manifest tagged by "2" is not found
Probably because ASP.NET Core version 2 does not exist in updated Docker hub I guess?
While I was searching to solve this problem, I found this article
Do I have to update my ASP.NET Core version?
CodePudding user response:
aspnetcore-build
had the sdk needed to build ASP.Net Core applications, this should be rougly the same as mcr.microsoft.com/dotnet/sdk:2.1
so you could try that image. For the runtime you could use mcr.microsoft.com/dotnet/aspnet:2.1
.
But you really should update your application as well, 2.0 has been end of life for a long time already and even 2.1 (which was a LTS release) is now out of support.