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

后端 未结 13 1567
温柔的废话
温柔的废话 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:55

    For me, this issue appeared randomly (along with multiple similar issues, such as "permission denied for nuget" etc. To fix that, restart Visual Studio) For windows, it was fixed by restarting docker service and restarting Visual Studio (2017).

    1. Shut down Docker and Visual Studio
    2. Winkey + R, type in services.msc
    3. Find Docker for Windows Service and restart it (restarting Docker normally is not enough)
    4. Start Docker and Visual Studio

提交回复
热议问题