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).
I am installing Docker Desktop in Azure Virtual Machine.
Any lead would be helpful. Thanks in advance.
2
Answers
I got the same error installing this on a VMware VM guest. What I needed to do to make it work is activate the option ‘Enable hardware assisted virtualization to the guest OS’. This makes sense since Docker is running a nested VM for the container engine. I’m not sure if a similar option is available in Azure, but that is where you’ll want to look.
I got the same error and solved it by installing a Ubuntu Distribution.
You need to install Ubuntu Distribution and set it as default Distribution of Windows Subsystem.