This has been talked about on numerous occasions. This topic is just a heads up that it is still happening in 4.33.1 on Windows and it is very irritating.
The fix/hack is still to run “wsl --unregister docker-desktop”, but I’m pretty sure this wipes out every persistent volume you have, meaning they will get wiped out every time you have to restart Docker Desktop.
I agree there is no fun having to work around issues. Docker Desktop for Windows depends on a perfectly working WSL installation. I recommend using the latest WSL application either from the app store or the github repository. The WSL in-box version that gets installed when the WSL feature is enabled, is restricted compared to the application version.
I am not sure if unregistering (as in deleting) the docker-desktop distribution really deletes your persistent state, as it’s store in the docker-desktop-data distribution.
Update: for the sake of testing, i executed wsl --unregister docker-desktop, then started Docker Desktop for Windows again: everything is still there.
I installed the latest wsl version from Release 2.3.24 · microsoft/WSL · GitHub, and the problem is still occurring. I haven’t rebooted or anything, but I’ll let you know if that changes any behavior.
As long as wsl --install results in fetching, registering and running the default distribution (or really any), Docker Desktop should be able to work as well.