Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Docker - Windows 10 - An unexpected error was encountered while executing a WSL command

I'm getting the below error after installing a new version of Docker Desktop:

An unexpected error was encountered while executing a WSL command. Common causes include access rights issues, which occur after waking the computer or not being connected to your domain/active directory.
Please try shutting WSL down (wsl --shutdown) and/or rebooting your computer. If not sufficient, WSL may need to be reinstalled fully. As a last resort, try to uninstall/reinstall Docker Desktop. If the issue persists please collect diagnostics and submit an issue (https://docs.docker.com/desktop/troubleshoot/overview/#diagnose-from-the-terminal).

Thanks in advance.
I am installing Docker Desktop in Windows 10.

like image 536
Felipe Chagas Avatar asked Oct 24 '25 14:10

Felipe Chagas


1 Answers

That was the case I handled. You need to install Ubuntu Distribution and set it as default Distribution of Windows Subsystem.

enter image description here

like image 69
Larry Neil Avatar answered Oct 27 '25 06:10

Larry Neil



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!