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

后端 未结 13 1580
温柔的废话
温柔的废话 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 02:22

    After one hour fighting with proxy, finally following solution worked just fine for me:

    docker build --build-arg HTTP_PROXY=http://xxxx.com:8080 --build-arg HTTPS_PROXY=http://yyyy:8080 -t kdekarin/aspnet .
    

    See @patrickbadley's comment for more info!

    0 讨论(0)
提交回复
热议问题