I was having issues with Docker starting the other day, so I decided to perform an update and see if it would fix my problem. It did not, and only created another issue. Immediately after performing the update, the following error comes up: “wsl update failed: updating wsl: elevated update failed: the operating system denied access to the specified file”
Upon restarting Docker desktop, I will get a UAC prompt for “Docker Desktop Privileged Helper”. For as long as I click “yes” on the prompt, the prompt will keep re-appearing, until I eventually click “no” on the prompt, which leads to me getting the same error that came up after initially updating Docker.
I tried running Docker as an administrator, and I can see on the Docker dashboard that docker is pretty much in a “bootloop” of sorts, it just repeatedly rotates through the following messages: “Starting the Docker Engine” → “Stopping the Docker Engine”
Trying to update WSL manually via terminal simply tells me that WSL is already up to date.
just encountered it awhile ago. tried searching for answers but to no avail, so i just tried everything i can and boom i got my docker running now. seems like the wsl failed to update on my end because it wasn’t installed in the first place or something. i tried running the ff command instead and it resolves the issue: wsl --install
The issue here is with Docker staff still being unaware that WSL can be installed from the Microsoft Store and the version bundled with the OS itself as a “feature” may not be installed at all.
If you only have the Store version installed, as you should since it’s much newer, and you don’t have the outdated OS version installed, then you will probably run into this issue (since Docker Desktop is trying to run wsl --update).