Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

AspNetCore:2.1 not found

Tags:

docker

Created a new .NET CORE 2.1 (preview) web app. Running it in local docker with Linux container I am getting compiler error:

Error Building blobtest
Service 'blobtest' failed to build: manifest for microsoft/aspnetcore:2.1 not found.

My dotnetversion
C:\WINDOWS\system32>dotnet --version 2.1.300-preview2-008530

like image 568
Yuvi Avatar asked Apr 12 '18 13:04

Yuvi


1 Answers

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
like image 173
Don Rolling Avatar answered Sep 27 '22 19:09

Don Rolling