https://github.com/dotnet/dotnet-docker-samples/tree/master/aspnetapp
Docker command docker build -t aspnetapp.
docker build -t aspnetapp
I am getting an error for docker bui
In my case, in Dockerfile, I have
Dockerfile
FROM mcr.microsoft.com/dotnet/core/sdk:2.2 AS build
and
FROM mcr.microsoft.com/dotnet/core/aspnet:2.2
But I only have .net 2.1 installed (view by dotnet --list-sdks). So I have to change 2.2 to 2.1 to make it work.
.net 2.1
dotnet --list-sdks
2.2
2.1