-
Notifications
You must be signed in to change notification settings - Fork 289
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
Make Dockerfile Failed on Windows container #427
Comments
Sorry for my poor English. Can someone give me some suggestions from my problem? |
It looks like you cannot access |
@friism Here is my setting |
I also try into microsoft/windowsservercore container.
|
Please try the networking debug script: https://github.com/Microsoft/Virtualization-Documentation/tree/master/windows-server-container-tools/CleanupContainerHostNetworking |
@friism
|
@soymilkfj does it work after the clean-up? Checking with @kallie-b to see if she has ideas |
I create a new network on Hyper-V and change from origin
|
@soymilkfj - I think that's good news because it means that wget was able to make the request and receive a response. In your wget command, add
Hope this helps! |
@jelster
Do I download successfully ? |
@soymilkfj you want to do:
|
I just ran into this problem in which the name resolution wasn't working properly. |
Apologies, until now I missed that I was pinged on this thread. @soymilkfj -- can you update me on where you are now with this issue? Also when you ran the ./CleanupContainerHostNetworking.ps1 script, did you do so with the -CaptureTraces argument? If you run the script with that argument the script should "hang" and ask you to repro your issue. Then once you've done that, you stop the script by pressing enter. When the script is stopped it will create a "PostCleanupState_XXXXXX" folder long with the "PreCleanupState_XXXXXX" folder. Once you've done this, you're welcome to send the resulting files to our team and we'll help you troubleshoot this. Just zip the files and send them to: [email protected] |
I suppose the issue is fixed then. Closing the issue (feel free to have a direct followup with @kallie-b) |
I believe this is still an issue, I downloaded the Docker Community Edition 17.03.0-ce-win1 (10300) and even though the host was able to download files correctly. I had to go to View Network Connections, vEthernal (HNS Internal Nic) -> Internet Protocol Version 4 -> Properties -> Explicitly set dns to 8.8.8.8. before building an image that includes Wget/ |
So, containers that you're creating on Windows 10 don't automatically have access to the internet? Is the symptom of the issue that you wouldn't be able to run something like |
True. The exact issue is still present. Even explicit setting of DNS do not solve the problem. |
FWIW, using Version 17.04.0-ce-rc2-win6 (10840) running on Win 10 v1607 (build 14393.969) I just ran
To make sure it wasn't a fluke, I changed the URL to docker.com; the name was still resolved (though you'll get a request aborted exception since this wget wasn't configured to follow redirects/change protocols to HTTPS). |
Thx for assist! wget : The remote name could not be resolved: 'google.com'
Update: "IPAM": {"Driver": "windows", |
Let's try recreating your default NAT network.
After running the above commands, could you show us the output of |
Ok, remove operation performed well. Here it is new output:
But I still have name resolving issue. |
Can you run Also, from within the container run |
I got this fixed in 2 steps:
|
@kallie-b This is issue is still occurring on the latest microsoft/mssql-server-windows image id 7f4a5f7b843c.
It fixes it. When the VM is shutdown from within the VM the network works correctly. |
Came here to say that this is still the solution in 2019. |
In case anyone else runs into this (as I just did)...
I had to:
Note: WindowsContainerNetworking-LoggingAndCleanupAide.ps1 did not fix things for me. It didn't even pause in the reproduction step. man, getting docker building on Windows 10 has been annoying... |
worked for me thanks |
#2760
|
Closed issues are locked after 30 days of inactivity. If you have found a problem that seems similar to this, please open a new issue. Send feedback to Docker Community Slack channels #docker-for-mac or #docker-for-windows. |
Hi there,
I am new for Docker on Windows 10.
I try to make my Dockerfile FROM microsoft/windowsservercore but it had some wrong .
Why can't I make new image ?
Expected behavior
Actual behavior
Information
I use Pwoershell
Steps to reproduce the behavior
erroinfo
The text was updated successfully, but these errors were encountered: