dockur / windows

Windows inside a Docker container.
MIT License
29.34k stars 1.99k forks source link

[Bug]: Failed to resolv servers #467

Closed reisalison closed 6 months ago

reisalison commented 6 months ago

Is there an existing issue for this?

Machine specifications

CPU: 11th Gen Intel Core TM i5 | RAM: 16 GB |

Operating system

debian 12

Docker version

Docker version 26.1.1, build 4cf5afa

Description

When starting compose I have dns errors to download the images. Has anyone ever caught this error?

Docker compose

version: "3" services: windows: image: dockurr/windows container_name: windows environment: VERSION: "win10" devices:

Docker log

❯ Downloading Windows 10... [i] Downloading Windows media from official Microsoft servers... [i] Downloading Windows 10... curl: (6) Could not resolve host: www.microsoft.com [!] Failed to resolve Microsoft servers! Is there an Internet connection? Exiting...

[+] Finished! Please see the above errors with information ❯ Failed to download Windows 10 using Mido, will try a diferent method now... ❯ Downloading product information from Microsoft... ❯ ERROR: Failed to download https://go.microsoft.com/fwlink/?LinkId=841361 , reason: 4 ❯ Failed to download Windows 10, will try another mirror now... ❯ Downloading Windows 10 from bobpony.com... ❯ ERROR: Failed to download https://dl.bobpony.com/windows/10/en-us_windows_10_22h2_x64.iso , reason: 4 ❯ Failed to download Windows 10, will try another mirror now... ❯ Downloading Windows 10 from massgrave.dev... ❯ ERROR: Failed to download https://drive.massgrave.dev/en-us_windows_10_consumer_editions_version_22h2_updated_april_2024_x64_dvd_9a92dc89.iso , reason: 4

Screenshots (optional)

image

kroese commented 6 months ago

Strange.. it means your container has no working DNS server. Maybe in Docker there is some setting you changed? You can add DEBUG: "Y" to the compose file environment: part. This will cause the container to print out the DNS settings. Please show me the output of that.

Do you have other containers on the same machine? Do they have internet?

reisalison commented 6 months ago

image

❯ Downloading Windows 10...

I have other containers but none running yet.

reisalison commented 6 months ago

Thank you very much for your support, my router had the dns service blocked. I fixed it by forcing a valid DNS and it solved the problem, thanks for the support

reisalison commented 6 months ago

tank you so much i lov this project... Regards