-
Notifications
You must be signed in to change notification settings - Fork 291
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
UAC requires elevation prompt every time after reboot OS #13806
Comments
I'm seeing this after updating to 4.33.0. |
I'm having the same issue |
Me too, after setting Docker Desktop to start al Windows login. |
After updating to |
I appears fixed after upgrade to 4.33.1 (maybe related to #14222? that's the only fix mentioned in release notes) |
Also started getting this today after upgrade to v4.33.1 Edit: Edit 03/08/2024: |
Same here, as @tackarama Edit : launched wsl --update --pre-release in pwsh, have WSL version: 2.3.14.0 right now, coming from 2.2.4 and new Kernel version for WSL, |
UPDATE: After the week, the popup was back. Not sure why it didn't display after restarts last week. |
I also have this since upgrading to 4.33.1 |
with 4.33.1 I am now stuck with endless UAC requests .. it tries to start the engine, stops and asks for UAC again. if I cancel the UAC, I see that it tries to run the "wsl --update" cmd edit: found the issue: wsl update to 2.2.4 was not possible. I had to remove the installation manually and install the update myself. Docker desktop works again now with up to date wsl kernel |
This is still an issue on @lorenrh Can this please be prioritized? |
Hi all, thanks for reporting the issue. The root cause of the WSL Update prompts is a bug in the Docker Desktop startup error handling code that was introduced in 4.33.0. The bug causes every startup to be incorrectly classified as a "WSL not up to date" problem, causing the prompts to update WSL that you are experiencing. Please, try out this development build (installer - md5sum:
Please, let us know how that goes. |
That dev build works for me - Windows 11, WSL 2.2.4.0. No more UA messages on startup. Many thanks for the resolution. |
Excellent - works for me, Thanks. Edit 08/08/2024: Just rebooted & Docker failed to start as per image. Tried to restart the PC & it would not reboot after waiting 15 mins. Crashed PC & logged in removed v4.33.1 (revised version supplied above) reinstall v4.32.0, recreated containers (only 2) and they came up. |
Hey @NorthNick , all - thanks for the feedback. @NorthNick , looking at your latest diagnostics it looks like WSL2 was in a state were processes could not be killed. I'll look more into it, but it may be a "one off" issue, which should be solvable with just a Stop Docker Desktop + Please, let us know if it keeps happening (feel free to open a new issue). |
Thank you - yes, that does seem to have fixed it. So all is now well. |
@andrea-reale The same issue that NorthNick described happen to me. I think it was caused by the container which had 'restart' set to 'always'. I.e. this container (and some dependency) tried to run on system start. I'm using your dev. build. Thank you. |
@andrea-reale no luck error spotted in wslbootstrap log: "[2024-08-08T03:48:10.849907057Z][wsl-bootstrap][F] mounting /lib/modules to /tmp/docker-desktop-/lib/modules: no such file or directory A89CF936-1CF7-4B13-AD32-CF7D80A703F4/20240808035123 EDIT: solved by commenting out my custom kernel in wslconfig [wsl2]
# kernel=C:\\Users\\dragon\\bzImage-5-15-153-1 and now it starts fine all images and containers shown. |
@levi-vu it looks like you're really running an old WSL version. Could you try to update with a recent one, for example this is the latest stable for x86_64: https://github.com/microsoft/WSL/releases/download/2.2.4/wsl.2.2.4.0.x64.msi |
I have updated wsl by cmd |
Thanks for this, I was able to get past this blowing up on Windows Arm64. I happened to have a custom kernel also 😅 |
The development build provided by @andrea-reale works for me too. Thanks |
able to get past this error by removing the custom kernel in .wslconfig |
I'm also running into this and the updated build does not resolve this...
|
You need to make sure you don't have any custom kernel in .wslconfig. Also that you're running the latest WSL Build.
Jeremy Sinclair
Windows Development MVP
Avalonia MVP
[signatureImage]
[signatureImage]
…________________________________
From: Blake Niemyjski ***@***.***>
Sent: Wednesday, August 14, 2024 8:05:28 AM
To: docker/for-win ***@***.***>
Cc: Jeremy Sinclair ***@***.***>; Comment ***@***.***>
Subject: Re: [docker/for-win] UAC requires elevation prompt every time after reboot OS (Issue #13806)
I'm also running into this and the updated build does not resolve this...
error spotted in wslbootstrap log: "[2024-08-14T12:04:42.149177253Z][wsl-bootstrap][F] mounting /lib/modules to /tmp/docker-desktop-<USER>/lib/modules: no such file or directory"
—
Reply to this email directly, view it on GitHub<#13806 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AA6URJONNY3FC6JY54EQ7PLZRNBYRAVCNFSM6AAAAABLSTTDPGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDEOBYGU3DEOBRHE>.
You are receiving this because you commented.Message ID: ***@***.***>
|
I don't even have a .wslconfig. I was running latest official 2.2.4 of wsl.. upgrading to wsl 2.3 seems to have resolved this issue. For me I am on latest stable windows 11 updates and just upgraded from previous docker point release to this one which caused the issues. |
I can confirm, that the development build fixed the issue here as well (Windows 11 Pro). |
tried the 4.33.1.162079 development build on windows 11
and also got
(diagnostics ID: disabled the custom kernel built for cilium and it starts up. @andrea-reale will the DD 4.34.0 be able to cope with custom kernels again or is this an unsupported configuration from now on? or will a custom kernel with modules support help? |
Same issue. 183A69B0-A22E-468F-824B-0666025033A9/20240816185240 My wslconfig:
|
@theBNT - thanks for sharing your problem here. The
As mentioned before, we do not officially support running custom kernels. On the other hand we do our best to make sure that custom kernels with the right configurations will keep working on Docker Desktop. |
@cgtarmenta have you tried to use the development build? Are you still experiencing the same error? |
@andrea-reale Yes I've tried the dev build, and got the same error. RN I'm back in 4.32 and using a custom kernel for WSL as is required by redroid image I'm working on, but i'll try again today in the afternoon to grab better info for you. cheers. |
Unfortunately - no it does not :-( After a few days, Docker Desktop did not start at all with some VM errors (sorry, did not record them) and I went back to version 4.32.0 (completely uninstalled 4.33.1 then reinstalled 4.32.0) - which works ok so far. This is already the second major problem I experienced with Docker Desktop in less than 6 months. Before there was an issue with 4.29. It seems, upgrading Docker Desktop can be a risky thing and it is always a good idea to keep older versions just in case. |
I have perhaps the same problem as @arnowelzel - the development build worked for a while, but now gives an error when starting Windows, saying "running engine: waiting for the VM setup to be ready: starting WSL engine: bootstrapping in the main distro: context canceled". Docker Desktop then works when started manually so I haven't bothered reporting it before now. It's not completely reliable: maybe one time in 5 a Windows boot completes without the error. Diagnostics ID: A28AE790-279C-4CA2-89C1-ED7EA701D72E/20240820101832 |
@NorthNick Thanks for uploading and sharing the diagnostics. Unfortunately, you are experiencing a known bug where the Until then, you can of course keep using 4.32 or work around the bug by:
|
@andrea-reale Thanks for the update. I'll try the work around, and just wait for 4.34 if that doesn't work. |
@andrea-reale I've the dev build working with the suggested command just a little bit modified: wsl.exe -d docker-desktop -u root mkdir -p /lib/modules # instead of /usr/lib/modules It is working even with a custom kernel, so many thanks for this. |
@andrea-reale, your dev build solved that Privileged Helper UAC issue for my setup. Thanks |
Spoke too soon. @andrea-reale, with build 162079 no longer the UAC Helper prompt appears but on the initial start-up (post Windows boot/restart) I get the same issue NorthNick reported in this thread: Captured Diagnostics ID F7279E79-7518-4A6F-ADA3-C759A0264C75/20240823112248 Some kind of race condition between Docker's and WSL's startup routines? I confirm this behavior is only present on the first Docker Desktop start-up after Windows is booted/restarted. To work around it, I disabled Docker's native autostart (in settings) and created a scheduled task to run "C:\Program Files\Docker\Docker\Docker Desktop.exe" a few minutes after the user logon. |
@andrea-reale When will 4.33.2 be released? |
does this workaround work for you? it might state that the file is not found but then it worked for me |
according to my information from docker support, there is a DD 4.34 release planned for august 29th, keeping fingers crossed :) |
*edit: scratch that... what is working for me is to left "Start Docker Desktop when you sign in to your computer" active and paired with a scheduled task set to run this powershell below, some minutes after the user logon (giving enough time to allow for the WSL related error to happen):
|
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! |
But if you open a fresh issue, please link it here if it's the same behavior, thanks. |
Description
After every OS reboot i get UAC elevation prompt for "Docker Desktop Privileged Helper" for program location ["C:\Program Files\Docker\Docker\resources\com.docker.admin.exe" wsl-update].
After restart Docker Desktop i don't get UAC prompt.
Reproduce
Expected behavior
No response
docker version
Client: Cloud integration: v1.0.35+desktop.5 Version: 24.0.6 API version: 1.43 Go version: go1.20.7 Git commit: ed223bc Built: Mon Sep 4 12:32:48 2023 OS/Arch: windows/amd64 Context: default Server: Docker Desktop 4.25.2 (129061) Engine: Version: 24.0.6 API version: 1.43 (minimum version 1.12) Go version: go1.20.7 Git commit: 1a79695 Built: Mon Sep 4 12:32:16 2023 OS/Arch: linux/amd64 Experimental: false containerd: Version: 1.6.22 GitCommit: 8165feabfdfe38c65b599c4993d227328c231fca runc: Version: 1.1.8 GitCommit: v1.1.8-0-g82f18fe docker-init: Version: 0.19.0 GitCommit: de40ad0
docker info
Diagnostics ID
5EC7FB5E-78B0-408A-929F-8F706FFE9D65/20231124051504
Additional Info
No response
The text was updated successfully, but these errors were encountered: