-
Notifications
You must be signed in to change notification settings - Fork 838
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
Temporary Failure in Name Resolution With Docker #11445
Comments
View similar issuesPlease view the issues below to see if they solve your problem, and if the issue describes your problem please consider closing this one and thumbs upping the other issue to help us prioritize it! Open similar issues:
Closed similar issues:
Diagnostic information
|
Networking works fine until docker desktop is ran on windows. After running docker desktop hostname resolution fails for the rest of the WSL session. Quitting docker does not restore hostname resolution. Only thing that works is |
Okay so I've been holding off on setting |
While previous attempts at setting the "bip" setting in docker engine to something like Had not worked, giving me issues like telling me "bip" must be an ipv4 address and even if I force the change in the daemon.json file myself it just didn't really resolve the issue. Today, I downgraded docker desktop to 4.24.0. Afterwards I was able to edit "bip" from docker engine in the app itself without the error. After setting bip dns in WSL is working again. |
Diagnostic information
|
Hi. Can you please collect networking logs by following the instructions below? |
So, I had downgraded docker desktop to v4.24.2 and set BIP in docker engine to something as a workaround. v4.24.2 is the latest version I was able to get working without docker killing my networking. In order to get the logs, I upgraded to 4.29.0 from the docker application. However, despite upgrading and running the new version. I was unable to reproduce the issue. I even removed BIP setting from docker engine. Restarted the app multiple times etc. Still no issue. Then I completely uninstalled docker desktop and re-installed v4.29.0 from scratch. After which the issue returned as described above. I had the network log script running the whole time until the issue was reproduced. Logs attached. |
Diagnostic information
|
Please follow the networking diagnostic script. https://github.com/microsoft/WSL/blob/master/CONTRIBUTING.md#collect-wsl-logs-for-networking-issues It should create a folder like [WslNetworkingLogs-date_ver.zip] |
Sorry must have c+p'd the script just below it. Oddly enough, the moment I run the script it kills my name resolution before I even have a chance to open docker. See logs and video |
For what it's worth, I was on version 2.0.something of WSL when I installed docker and began experiencing this issue. I tried updating WSL (which put me on 2.1.5 as I currently am on now) and I also tried turning WSL off in windows features and then turning it back on which also did not help. |
Okay so incidentally I'm seeing now any time I run my "default" WSL instance, it starts with no ability to resolve DNS hostnames at all. No matter what I do the default Ubuntu install will not be able to resolve hostnames. If I then run |
Deleting my default WSL instance and remaking it seems to have solved the issue for now. |
Windows Version
Microsoft Windows [Version 10.0.19045.4170]
WSL Version
2.1.5.0
Are you using WSL 1 or WSL 2?
Kernel Version
5.15.146.1-microsoft-standard-WSL2
Distro Version
Ubuntu 22.04.4
Other Software
Docker Desktop (Windows), version 4.29.0 with WSL 2 backend and integration with the distro
Repro Steps
ping google.com
from the wsl terminal.Expected Behavior
I should get something along the lines of:
Actual Behavior
$ ping google.com ping: google.com: Temporary failure in name resolution
Diagnostic Logs
The text was updated successfully, but these errors were encountered: