Unable to load the service index for source https://api.nuget.org/v3/index.json. [C:\app\aspnetapp.csproj]

后端 未结 13 1612
温柔的废话
温柔的废话 2021-02-12 01:45

https://github.com/dotnet/dotnet-docker-samples/tree/master/aspnetapp

Docker command docker build -t aspnetapp.

I am getting an error for docker bui

13条回答
  •  南笙
    南笙 (楼主)
    2021-02-12 01:57

    In my case, in Dockerfile, I have

    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.

提交回复
热议问题