I am a beginner into Docker stuff, I am on windows 11 and whenever I try to open docker desktop it doesn’t open.
Always this error message shows up, also whenever I try to run docker ps
or docker images
or anything related to docker it always shows this error
can anyone help
I have turned on hyper-v, wsl etc but nothing seems to work
4
Answers
That is followed by
docker/for-win
issue 12413, and this question (which suggests a fresh installation of Windows 11 itself!)Only workaround so far (to avoid reinstalling W11):
I had the same issue, tried to get assistance from docker support and did lota google but nothing worked.
I had a gut feeling that the issue was not within the Docker Desktop as i have tried all the options including deleting docker appdata etc. sov, i started investigating WSL and noticed the distros docker-desktop-data, docker-desktop was in stopped & uninstalling state. These states never changed and appears even after uninstalling Docker desktop and windows reboot.
PowerShell (admin)
I removed those distros after uninstalling docker desktop completely (including deleting docker folders from appdata manually)
PowerShell (admin)
Replacing
"DistributionName"
with the name of your targeted distribution will unregister that distribution from WSL so it can be reinstalled or cleaned up. Caution: Once unregistered, all data, settings, and software associated with that distribution will be permanently lost. Reinstalling from the store will install a clean copy of the distribution. For example,wsl --unregister "DistributionName"
would remove"DistributionName"
from the distributions available in WSL. Runningwsl --list
will reveal that it is no longer listed.PowerShell (admin)
Finally, reinstalled Docker desktop and its associated applications.
It started working perfectly!
I was facing similar issue with Windows 10 and Docker Desktop 4.16.3 (96739)
I had disabled WSL2 based engine.
Just executed below command using Power shell( admin):
And my issue got solved like snap of finger.
Thanks
After trying all the solutions listed here and nothing worked for me, i simply reinstalled wls2 from windows app store. and everything worked fine for me.