-
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
Docker Desktop tries to update wsl each startup #13868
Comments
Hi @anton-filatov, Sorry you hit an issue, but thanks for reporting it. If possible, could you upload the Docker Desktop diagnostics bundle? That will provide us with even more info so we can debug. Thanks! |
@anton-filatov you are the best ) nothing else helped to solve that problem so docker desktop became useless (win 11 with latest updates). Now i at least have a workaround - change locale and work. Thank you! |
Hello, I wanted to post a quick update to say thank you for your patience and that after some investigation, we identified an issue. The fix will be included in the upcoming 4.27 release. Thanks! |
Great news up here. Look forward to update to 4.27 ) Thanks!!! |
Confirm - everything works now in 4.27. Thanks! |
Great news! Thank you 🙏 |
I'm closing the issue for now and will re-open in case this happens again. Thanks @chelnak |
@bsousaa I also had this issue before and now I have this issue again on version 4.28.0 |
@TheSilvermind Would you be able to open a new ticket and provide some diagnostic logs please? 🙏 |
version 4.24.2 doesn't check version of wsl |
Same thing. Had to uninstall 28 version. Sickening. |
Since updating to 4.33.0 yesterday, I have the same issue. On automatic startup while system startup. First access control of Windows shows up and asks for permission to update system components. When declining it, I see a docker error message, that WSL update failed. |
Hey @thedatabaseme - if possible, can you generate a diagnostic bundle and post the ID here? If the UI is blocked by this issue you can generate one from the command line. Check out this document for more information https://docs.docker.com/desktop/troubleshoot/overview/ |
@chelnak . Here's the ID Maybe another interesting thing for you. The WSL update seems only to happen during system start / autostart. When I quit Docker Desktop and start again, no permission request shows up. |
Also have this issue now with Docker Desktop Privileged Helper asking boot now for permission WSL version: 2.2.4.0 |
Same problem here with 4.33 (my Docker Desktop is configured to start a minute after boot) I've take a look into the logs and so far found out the following:
It would be great if we could manually set "wslInstallMode" to something else - which blocks WSL updates - instead of "installLatestWsl" so that we could work around this bug for now. |
Same problem here with 4.33 |
I appears fixed after upgrade to 4.33.1 (maybe related to #14222? that's the only fix mentioned in release notes) |
Same problem here, with upgrade from 4.32 to 4.33.1 today, wsl --version Edit : launched wsl --update --pre-release in pwsh, have WSL version: 2.3.14.0 right now, coming from 2.2.4 wsl --version |
For me, the issue was gone for one restart but reoccured on the second and all thereafter on v 4.33.1 |
Same issue in our case with v 4.33.1. Docker keeps trying to update wsl after a reboot. It is possible that it does not ask for permissions, but as stated by @thedatabaseme this is always only the case for a single reboot. After that reboot Docker again attempts to perform an update. In our case Docker tries that within a VM (long story) that does not have any internet access and therefor cannot update anything. In case of that VM, granting the permission does not seem to do anything. My Host PC runs fine and does not ask for these permissions, though which is weird. I've tried to tell Docker not to do any updates, but all attempts in modifying the settings.json failed so far:
|
Same issue in the latest update.... I am fed up !! Since last week, after every reboot (or startup), Docker asks for privileges to update wsl. What is this bug! |
Hey all, I have shared a development build that should avoid this loop of "WSL Update required" prompts here. Feel free to try that out and report any feedback! (Please, also note that custom WSL2 kernels are not officially supported in Docker Desktop - some of the diagnostics shared in this and other threads point to that as a common source of the problem) |
@andrea-reale while i cant try this custom build id like to say thanks for addressing this issue, hope it is solved with an official build soon. regarding the custom WSL2 kernels: when working with e.g. cilium it is (was?) required to enable additional modules within the kernel (see e.g. https://wsl.dev/wslcilium/), can you point into a direction of where the problems arise for docker desktop? would be a pity if its an either-or-situation. |
Hey @theBNT thanks for sharing your feedback. It is impossible for us to support officially custom kernels, as Docker Desktop as many dependencies on kernel features and the matrix of combination is impossible to maintain. That said, with development build I shared above (and future Docker Desktop releases), your custom kernel will most likely continue to unofficially work, if it did in the past. For full openness, the source of the issue in 4.33.1 comes from the added support to the upcoming WSL2 versions (2.3.11 and above), which will ship a thin kernel with loadable modules support. Docker Desktop needs to load some of these modules at boot. Unfortunately, module loading is disabled and fails hard on WSL2 custom kernels, hence the error you were experiencing. The development build tolarates failing to |
Hi @Shaphil , have you tried the build I shared above in this thread? |
Yes, I just did, but it failed like this #13806 (comment) So I reverted to v4.32 like you suggested (#13806 (comment)) and now everything's ok. I will be waiting for Docker Desktop 4.34. |
Hi, |
I cant believe this has been around since Jan 9th and there have been numerous promises that it has been fixed in version x.xxx.xxx. I have an environment where I have software that requires interaction to allow elevation. I am evaluating docker to provide packaged environments to dev and support teams for product and api work. This has been a blocker for me for weeks now. Software should not be trying to update a windows component on startup. If there is a problem, or it needs a version to function it should tell you and then its up to the individual/I.T team to fix. |
Totally agree. It's not only WSL, but any windows component. There are more apps which may depend on that version, and docker can potentially destroy that. |
4.34.0 has been released with a fix for this issue, more information o the release notes. I'll be closing this issue, but if the problem persists please open a fresh issue! |
I had an problem in version 4.33.1, fixed when upgrading to 4.34.2. |
Description
Docker Desktop fails to determine wsl version if windows system locale differs from en. This leads to attempt to upgrade wsl which triggers UAC elevation prompt for "Docker Desktop Privileged Helper" for program location ["C:\Program Files\Docker\Docker\resources\com.docker.admin.exe" wsl-update].
After startup Docker works fine, but UAC elevation prompt is annoying.
Looks like the problem is similar to #13518, #13524. Also #13806 may have the same reason.
Reproduce
Expected behavior
There is no attempt to update wsl.
docker version
Client: Cloud integration: v1.0.35+desktop.5 Version: 24.0.7 API version: 1.43 Go version: go1.20.10 Git commit: afdd53b Built: Thu Oct 26 09:08:44 2023 OS/Arch: windows/amd64 Context: default Server: Docker Desktop 4.26.1 (131620) Engine: Version: 24.0.7 API version: 1.43 (minimum version 1.12) Go version: go1.20.10 Git commit: 311b9ff Built: Thu Oct 26 09:08:02 2023 OS/Arch: linux/amd64 Experimental: false containerd: Version: 1.6.25 GitCommit: d8f198a4ed8892c764191ef7b3b06d8a2eeb5c7f runc: Version: 1.1.10 GitCommit: v1.1.10-0-g18a0cb0 docker-init: Version: 0.19.0 GitCommit: de40ad0
docker info
Diagnostics ID
Additional Info
Logs when locale is en:
Logs when locale differs from en:
The text was updated successfully, but these errors were encountered: