I have created a docker file for my Visual Studio 2019 ASP.Net core API project and trying to create a docker Windows container image using docker desktop (installed in WIN 10), getting the below error in RUN dotnet restore step -
C:\Program Files\dotnet\sdk\3.1.424\NuGet.targets(128,5): error : Unable to load the service index for source https://api.nuget.org/v3/index.json.
Do we need to set anything in the Docker file?