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

后端 未结 13 1581
温柔的废话
温柔的废话 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条回答
  •  慢半拍i
    慢半拍i (楼主)
    2021-02-12 02:15

    Just add --network=host option to docker build

    docker build -t aspnetapp . --network=host

提交回复
热议问题