-
Notifications
You must be signed in to change notification settings - Fork 255
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to see my Private Server inside NuGet.Config file with docker #6581
Comments
Ok i figure it out. My NuGet.Config file was wrong. When ı delete
that it worked. |
same error. can anyone help on this issue? Thanks |
same error |
Same error. |
same error. |
same error..Pls help |
same error pls |
My Nuget config -
Docker File has this - |
Using the IP address of the private repo instead of the server name sorted out the problem for me.
|
Change test.global.com to IP |
Why on earth is this closed? How about DNS resolution is made to work, like it does for all other command I use like ping? Related seem: |
Same problem here ! |
I have the same issue and fix it with this docs: Managing NuGet Credentials in Docker Scenarios |
I have ASP.Net Core 2.0 project and ı am using packages from nuget.org and My Private Server. I succesfully launch my API with visual studio. But when issue come to docker it gets complicated. It was not seeing my private server at the beginning because of NuGet.Config file was absend inside project directory. This time nuget see only 1 of sources(Nuget.org or my private server).
NuGet product used :
Package manager Console , dotnet.exe , NuGet.exe, Docker
NuGet version (x.x.x.xxx):
v4.5.1
VS version (if appropriate):
VS 17
OS version (i.e. win10 v1607 (14393.321)):
Win 10
1.My NuGet.Config
2.My Dockerfile
I wrote the problem here because i think Docker can see my NuGet.Config file but not servers due to inappropriation inside NuGet.Config file. When ı type
docker build -t webserv .
the error pops up at Dockerfile'sdotnet restore
command.If i add a source to NuGet.Config under "addkey" tag
This time ı have this error for every package inside my project:
As you can see at the NuGet.Config ı have 2 source but it says i have only one source. If ı can build and run my project with VS 17 then ı think my NuGet.Config file is correct but with Docker Commands it doesn't. Is nuget incompatible with docker or my settings are wrong. That blows my mind. Plase help.
The text was updated successfully, but these errors were encountered: