-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
dotnet restore failed with Unable to load the service index for source https://api.nuget.org/v3/index.json #8144
Comments
=> ERROR [build 4/6] RUN dotnet restore 7.5s
executor failed running [/bin/sh -c dotnet restore]: exit code: 1 |
Please help to resolve this |
/cc @nishanil |
Using Windows Docker desktop to build the basic image here is the Docker file content for reference --content starts--- FROM mcr.microsoft.com/dotnet/sdk:6.0 AS build FROM mcr.microsoft.com/dotnet/aspnet:6.0 --content ends-- |
Expand
|
@nishanil can you please help with this? |
Hi @carlossanlop, Can you please assign this issue to me, I'll check this and provide updates. |
@erjain should we always assign to you instead of Nish? |
Sure @mairaw . |
hi @erjain, Any update on this |
Hi @balajivijayakumar1994, I tested the tutorial and it worked fine for me. It seems the docker file content is old, you are using mcr.microsoft.com/dotnet/sdk:6.0 . It has been updated to .NET 7.0 (add a DockerFile), can you revisit the link : https://dotnet.microsoft.com/en-us/learn/aspnet/microservice-tutorial/install and try afresh. I hope it helps. |
Hi @erjain , i did exact same thing as mentioned in document but still facing the same => ERROR [build 4/6] RUN dotnet restore 132.4s
Note- I tired the steps in Windows machine with docker installed with docker version as Docker version 20.10.21, build baeda1f please let me know what i am missing here... basic project itself is failing and it even worries more for bigger project in asp .net core |
Please visit this comment for a similar issue: #8048 (comment). Can you ensure that you have .NET 7 SDK installed in your system? |
Hi @balajivijayakumar1994, are we good to close the issue? |
Closing it. We can re-open if the problem is still happening. |
Still I am facing issue and I have TLS 1.2 enabled in Edge options. people recommended to use DNS setting but what IP should have to mention in DNS configuration please help .I am stuck at this step for a month now Thanks |
I reopened it. properly @erjain can help more here. |
This is how one of the users has solved the issue: |
Experiencing the same. Updating the dns does the fix it for me. Any other solutions? |
@balajivijayakumar1994 How did you fix it? |
Hello all, I am having the same error. My company uses ZScaler. Is it possible that this is the problem? Any help is most appreciated. Regards, |
Any update on this? I am stuck with a similar issue |
Yes. The problem was that I needed to copy the ZScaler cert to the docker. I added these lines to the Dockerfile: WORKDIR /src With the cert in place, the docker was able to reach the internet and nuget.org |
for anyone else having this issue in WSL2, this fixed the problem for me: microsoft/WSL#8358 (comment) |
Problem encountered on https://dotnet.microsoft.com/en-us/learn/aspnet/microservice-tutorial/docker-image
Operating System: windows
Provide details about the problem you're experiencing. Include your operating system version, exact error message, code sample, and anything else that is relevant.
The text was updated successfully, but these errors were encountered: