Docker desktop fails after Windows update. docker-desktop-data WSL can't find /usr:/usr and blkid in $PATH

I’ve been using Docker Desktop for a while and after a Windows 11 update this week, I can’t start Docker Desktop and I get the following error:

error spotted in wslbootstrap log: “[2024-09-14T15:20:40.286835463Z][wsl-bootstrap][F] preparing block device /dev/sdd: detecting file system: detecting fs type: exec: "blkid": executable file not found in $PATH”

for wsl I tried:

wsl --update

Then, I tried reinstalling Docker Desktop, and I get the same error.

When I run wsl (with the default Ubuntu instance) I get:
grep not found
grep is in /bin:/usr/bin and it is not in $PATH

As a workaround to start wsl, I added a .sh script in the /etc/profile.d/ directory adding /bin:/usr/bin to the $PATH and now wsl starts fine.

Any idea on how to start my Docker Desktop? I don’t have access to my containers with all the development I’ve done.

Thanks.

It looks like something happened to your WSL which has to be fixed first. grep should be included in the ubuntu distro and if it cannot be found, your WSL is broken.I don’t use it often enough to know what it could be caused by, but if it happened during a Windows update, maybe you should try to get help in a Microsoft forum.

I would probably try to reinstall the whole WSL, not just the distro. Maybe turn off the Windows features and turn back again, but I guess that wouldn’t matter.

WSL is not the distribution. Docker has its own distributions. So the fact that you “fixed” a default distribution will not affect Docker Desktop.

Thanks for the reply. I know the default wsl instance (Ubuntu) is not used by Docker-Desktop. However, I was getting the same error when I was launching it, so I thought that finding a workaround for it would help me with Docker desktop.

However, docker-desktop-data wsl distribution is not even created.

I tried to reinstall wsl, but No luck.

I’ll try with a Microsoft forum

Thanks again.