Latest docker 4.1.1 fail to start with "System.InvalidOperationException: Failed to deploy distro docker-desktop..."
I get this error and .net seem to crash Tried install/reinstall
"System.InvalidOperationException: Failed to deploy distro docker-desktop to C:\Users\oz\AppData\Local\Docker\wsl\distro: exit code: -1 stdout: The system cannot find the file specified.
stderr:
at Docker.ApiServices.WSL2.WslShortLivedCommandResult.LogAndThrowIfUnexpectedExitCode(String prefix, ILogger log, Int32 expectedExitCode) in C:\workspaces\PR-16599\src\github.com\docker\pinata\win\src\Docker.ApiServices\WSL2\WslCommand.cs:line 146
at Docker.Engines.WSL2.WSL2Provisioning.
Please, help us understand the problem. For instance:
- Is it reproducible? YES
- Is the problem new? YES
- Did the problem appear with an update? YES
- A reproducible case if this is a bug, Dockerfiles with reproduction inside is best. -->
- Windows Version: windows 11 21h2 os build 22000.282
- Docker Desktop Version: 4.1.1
- WSL2 or Hyper-V backend? WSL2
- Are you running inside a virtualized Windows e.g. on a cloud server or a VM: no
Steps to reproduce the behavior
- Fully removed Docker desktop
- Install and start it
- wait
This looks similar to https://github.com/docker/for-win/issues/12226
It appears as if the upgrading proccess has had issues since at least version 3.3. Here are more related items: https://github.com/docker/for-win/issues/11350 https://github.com/docker/for-win/issues/12115 https://github.com/docker/for-win/issues/12278
I don't have enough facts to comment but it appears as if this is an area what is a particular weekness in the product.
So far the following worked in my environment to resolve this kind of issues:
- Uninstall current Docker Desktop version
- Reboot computer (this step is not always required, so you can try without this first)
- Install desired Docker Desktop version
OK Tried it all like https://www.jeeja.biz/2021/02/07/how-to-fix-wsl2-incompatibility-with-docker/ Nothing helped :(
Hi can you provide diagnostic, see the procedure at https://docs.docker.com/desktop/windows/troubleshoot/#diagnose-and-feedback?
Issues go stale after 90 days of inactivity.
Mark the issue as fresh with /remove-lifecycle stale comment.
Stale issues will be closed after an additional 30 days of inactivity.
Prevent issues from auto-closing with an /lifecycle frozen comment.
If this issue is safe to close now please do so.
Send feedback to Docker Community Slack channels #docker-for-mac or #docker-for-windows. /lifecycle stale
Closed issues are locked after 30 days of inactivity. This helps our team focus on active issues.
If you have found a problem that seems similar to this, please open a new issue.
Send feedback to Docker Community Slack channels #docker-for-mac or #docker-for-windows. /lifecycle locked