Quantcast
Channel: Active questions tagged nuget-package - Stack Overflow
Viewing all articles
Browse latest Browse all 3067

dotnet restore with private nuget server fails in docker-compose

$
0
0

The dotnet restore step is failing only from docker-compose, and only when I use a private nuget server in addition to the public server. It seems to be looking on my private server for public packages, and then it times out. I get this error:

#15 101.5   The HTTP request to 'GET http://my-nuget/Shared/nuget/FindPackagesById()?id='Microsoft.EntityFrameworkCore.Design'&semVerLevel=2.0.0' has timed out after 100000ms.

I don't have the problem when I run dotnet restore manually, without it being in docker. I have the problem on two projects that both use the private and public nuget servers. Another project only uses the public server, and it works with no problem (and it does not have a nuget.config).

My nuget.config is:

<configuration><packageSources><add key="nuget.org" value="https://api.nuget.org/v3/index.json" protocolVersion="3" /><add key="USAS" value="http://my-nuget/Shared/nuget" /></packageSources></configuration>

If I remove my private server, I get errors for the three packages that use the private server, but I don't get the errors for the public packages.


Viewing all articles
Browse latest Browse all 3067

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>