docker / for-win

Bug reports for Docker Desktop for Windows
https://www.docker.com/products/docker#/windows
1.86k stars 288 forks source link

Docker Engine Failed to Start : Getting Error "waiting for docker daemon: running wsl-bootstrap: WSL engine terminated abruptly" #13638

Open Chenthilraj opened 1 year ago

Chenthilraj commented 1 year ago

Description

Using Windows 10 Enterprise. Installed Docker Desktop for Windows and followed the instructions. It was running good. Suddenly, Getting this error : waiting for docker daemon: running wsl-bootstrap: WSL engine terminated abruptly

I tried the following

  1. wsl --update to check Windows Subsystem for Linux is up todate
  2. Thank you for contacting Docker Support. It may be worth initially trying to run a wsl --update to ensure you are using the latest version of WSL, but in order to troubleshoot further we'll need to look at the logfiles. Following this link you can run the diagnostics (even through terminal if Docker Desktop isn't starting) https://docs.docker.com/desktop/troubleshoot/overview/#diagnose-and-feedback

When it finishes the tests let us know the diagnostics ID

You might also try doing a clean re-install by clearing old files/folders. If it's still running into the issue after that you can do the diagnostics again and share the new diagnostics ID, so the logs are very concise for troubleshooting the issue.

  1. Uninstall Docker Desktop

  2. Deleted the below files: C:\ProgramData\Docker C:\ProgramData\DockerDesktop C:\Program Files\Docker C:\Users\\.docker C:\Users\\AppData\Local\Docker C:\Users\\AppData\Roaming\Docker C:\Users\\AppData\Roaming\Docker Desktop

  3. Reinstalled Docker Desktop.

But still getting the same error.

Please find attached the docker diagnostic log files and report..

self-diagnose.txt

log.txt diagnostics.log log.txt self-diagnose.txt diagnostics.log

Reproduce

  1. Install Docker Desktop for Windows
  2. Use WSL
  3. On starting the docker engine, getting this error.

Expected behavior

The docker engine should start without any issues

docker version

Since docker engine is not running unable to get this details. Using the latest version of Docker Desktop for Windows.

docker info

Since docker engine is not running unable to get this details. Using the latest version of Docker Desktop for Windows.

Diagnostics ID

6F238ACD-1ADD-4F16-8CAC-FC3E669EB7AE/20230808102434

Additional Info

NA

tellisnz commented 1 month ago

For those with the:

mounting /usr/lib/wsl to /tmp/docker-desktop-<USER>/usr/lib/wsl: no such file or directory

error, this also worked for me:

I renamed it to .wslconfig.bak and Docker just started! Build and run container was succesfull. Then I stopped Docker, renamed back to .wslconfig and then again run Docker desktop and it has started succesfully.

emr-arvig commented 4 days ago

Does anyone have a reason or a solution? I cannot change the .wslconfig settings since I need them to ensure that Cisco Secure VPN Client works.