-
Notifications
You must be signed in to change notification settings - Fork 22
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
Error "CTC1014" Docker command failed with exit code 1. The command 'cmd /S /C dotnet restore "AssignmentDeltaXAPI/AssignmentDeltaXAPI.csproj"' returned a non-zero code: 1 #350
Comments
@ks1990cn the logs from the docker build hopefully contain an error message from the NuGet restore. |
@NCarlsonMSFT here are logs: C:\Users\tanmays> C:\Users\tanmays> How to resolve this nuget issue cause I'm unable to publish it to docker hub too. |
@ks1990cn the error you're getting from curl suggests that your container is having DNS issues. |
Yeah seems like issue with my path... something is wrong with my docker file should be in root directory! I'll try again.. we can close this for now... but if required I'll text you here! Thanks for great support. |
@ks1990cn FYI: The Dockerfile not being at the root is the expected behavior of the Dockerfile scaffolding in VS. To support building in a container with project to project references we set the build context to the solution folder but still place the dockerfile in the project folder. Regardless of that, your inability to connect using curl when directly running the image still points to a networking issue that is broader than the individual container / Dockerfile used in this project |
Yes I tried creating any other application, it worked for it... but still an issue for this I need to explore about host proxy. |
Hi All,
I've one repo : https://github.com/ks1990cn/Demo_API_For_IMDB
In this repo, my Docker File is at https://github.com/ks1990cn/Demo_API_For_IMDB/tree/main/API/AssignmentDeltaXAPI
I tried to create Docker image using docker support tool for windows by referring to https://www.youtube.com/watch?v=k2sskhYEPkI
I just right clicked on my API -> Docker support -> For Windows then tried to build the image.
If I select to run & debug using Docker its running fine but getting error when I tried to build this image.
I also referred to #247 (#247) but didn't worked for me.
Please let me know if anyone need further information and kindly help me on this.
Thanks!
The text was updated successfully, but these errors were encountered: