Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Docker engine failed to start | An unexpected error was encountered while executing a WSL command. #13471

Closed
muhammadshamshad11 opened this issue May 7, 2023 · 4 comments

Comments

@muhammadshamshad11
Copy link

muhammadshamshad11 commented May 7, 2023

Hi everyone.

I have been struggling to start docker engine for few days now. I have tried every possible thing I could on internet to fix it but all in vain.

Docker was working fine few days ago and now I get this weird error.

Can someone please help?

image


> 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).

Hyper V, virtual platforms, and etc these all are checked in apps and features.

I am using:

Windown 10 education.

Thanks
2023-05-07 19_20_30-New Issue · docker_for-win and 2 more pages - Personal - Microsoft​ Edge

@MaHEISindy
Copy link

1 Control Panel - Programs and Features - Enable and Disable Windows Features - Check to open hyper-v
2 If the hyper-v platform is grayed out and cannot be opened, it is necessary to enable virtualization technology in the bios. Press del to enter the bios settings and turn on Intel virtual technology. Refer to the following figure, check and restart the computer

@ctalledo
Copy link

ctalledo commented May 8, 2023

Hi @muhammadshamshad11, sorry to hear about the problem.

Some questions to help us debug:

  1. What version of Docker Desktop are you using?

  2. Is Docker Desktop configured with WSL or Hyper-V? (I presume the former based on the error you got).

  3. What version of WSL do you have on your host (wsl --version)?

Also, if you have a chance, please collect the diagnostic bundle. That will help us identify the issue.

Thanks again.

@WillNovus
Copy link

WillNovus commented May 11, 2023

Hey Mohammed, I tried this and it worked. Although, I am back here again because I am trying to integrate my minikube with Docker and the engine has stopped.
If you care for it, navigate to Appdata/Roaming/Docker folder in your user account
Open the settings file (JSON file) and make sure the settings below are set that way.

"integratedWslDistros": [ ]
"enableIntegrationWithDefaultWslDistro": false,

@ctalledo
Copy link

Closing as we don't have enough info to debug. Possible duplicate of #13445, but we can't say for sure.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants