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 Desktop will not start after Windows 11 update #11805

Closed
3 tasks done
lofbacke opened this issue Jul 31, 2021 · 17 comments
Closed
3 tasks done

Docker Desktop will not start after Windows 11 update #11805

lofbacke opened this issue Jul 31, 2021 · 17 comments

Comments

@lofbacke
Copy link

lofbacke commented Jul 31, 2021

  • I have tried with the latest version of Docker Desktop
  • I have tried disabling enabled experimental features
  • I have uploaded Diagnostics
  • Diagnostics ID: D546E9F4-8C1F-48CE-A431-189457BE23FB/20210731170524

Actual behavior

When I start my computer after upgrading from Windows 10 to Windows 11, Docker Desktop fails to start and displays the following error message:
image
image

Expected behavior

Docker Desktop should start successfully.

Information

This issue is reproducible every time I restart my computer or attempt to start Docker Desktop manually. Docker Desktop was working fine before the Windows update, but started failing immediately after the update was installed.

  • Windows Version: Windows 11 Home (build 22000.100)
  • Docker Desktop Version: 3.5.2
  • WSL2 or Hyper-V backend? WSL2
  • Are you running inside a virtualized Windows e.g. on a cloud server or a VM: No

Here is the full text of the error message:

WSL distro stopped while waiting for Lifecycle server.
  >Stdout:

  >Stderr:
2021/07/31 17:16:31 resolving /mnt/host/c/Program Files/Docker/Docker/resources/wsl/docker-wsl-cli.iso...
Error: mounting wslCLIDest: stat /mnt/host/c/Program Files/Docker/Docker/resources/wsl/docker-wsl-cli.iso: no such file or directory
2021/07/31 17:16:31 stat /mnt/host/c/Program Files/Docker/Docker/resources/wsl/docker-wsl-cli.iso: no such file or directory
mounting wslCLIDest
main.doRun
	/go/src/github.com/docker/pinata/linuxkit/pkg/wsl-bootstrap/main.go:230
main.run.func1
	/go/src/github.com/docker/pinata/linuxkit/pkg/wsl-bootstrap/main.go:94
github.com/docker/pinata/vendor/github.com/spf13/cobra.(*Command).execute
	/go/src/github.com/docker/pinata/vendor/github.com/spf13/cobra/command.go:850
github.com/docker/pinata/vendor/github.com/spf13/cobra.(*Command).ExecuteC
	/go/src/github.com/docker/pinata/vendor/github.com/spf13/cobra/command.go:958
github.com/docker/pinata/vendor/github.com/spf13/cobra.(*Command).Execute
	/go/src/github.com/docker/pinata/vendor/github.com/spf13/cobra/command.go:895
main.main
	/go/src/github.com/docker/pinata/linuxkit/pkg/wsl-bootstrap/main.go:36
runtime.main
	/usr/local/go/src/runtime/proc.go:225
runtime.goexit
	/usr/local/go/src/runtime/asm_amd64.s:1371

Please note: The files that it says do not exist, do in fact exist.

I have attempted to resolve this issue using solutions from the following thread, which seems to be describing the same error, but on Windows 10. None of them have worked.
#6727

Steps to reproduce the behavior

  1. Using a machine running Windows 10, update to Windows 11
  2. When your computer starts for the first time (and every time afterwards), Docker Desktop will fail to start.
@maartenvantjonger
Copy link

Same here. As a workaround (if you don't need WSL) you can disable WSL integration by setting "wslEngineEnabled": false in the config file at C:\Users\<username>\AppData\Roaming\Docker\settings.json

@ryanmuhammad
Copy link

update the kernel by typing wsl --update, then restart the wsl.
it fixed that problem

@janlonden
Copy link

What ryanmuhammad suggested solved the problem for me. Just remember to run your terminal as administrator.

@jking777
Copy link

jking777 commented Aug 3, 2021

Same here. And ryanmuhammad's solution also worked for me. Thanks!

@raad-orfali
Copy link

Same for me. the solution didn't solved it also it will effect wsl2 as I start getting mount error and ubuntu is not working till I install Docker Desktop
Win Ver: Windows 11 Pro Version 21H2 (OS Build 20000.100)
Docker Version: 3.5.2

@mitchross
Copy link

Same issue

@lofbacke
Copy link
Author

@ryanmuhammad's solution worked for me. Thanks everyone!

@alokverma75
Copy link

Yes, I too was facing same issue with windows 11 upgrade same version. And wsl --update worked like a charm. Thanks for the solution.

@fdepierre
Copy link

Thanks works wsl --update works for me with docker 3.6.0 but not 4.0.0

@XinglingL
Copy link

Sorry I have a problem, I did wsl --update, and I restarted the computer which I thought would restart wsl2 as well, but it did not work. And using wsl --update gave me the following picture. I tried to restart wsl2 with LxssManager, but when I opened Docker Destop, it still shows that Docker fails to initialize, like the following picture. What should I do now? Thank you so much.
1
2

@GrantBrontoli
Copy link

I'm having the same issue @XinglingL

@claudiomulas
Copy link

I've solved using Hyper-V. To use it from powershell (with admin rights)

Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Hyper-V -All

@beecars
Copy link

beecars commented Sep 17, 2021

Encountered same issue with Windows 11 Insider Preview and Docker 4.0.1.

Used wsl --update in as indicated above, but also had to re-install Docker 4.0.1 to remedy the error.

@PeterJohnson
Copy link

PeterJohnson commented Sep 18, 2021

Updated wsl, re-installed Docker 4.0.1, and enabled Hyper-V. None have solved the issue for me (Windows 11 22000.194).

EDIT: This fix worked for me: #12099 (comment)

@svdbrg
Copy link

svdbrg commented Sep 21, 2021

My problem to this was I didn't have a Linux distro installed in WSL2. Installed Ubuntu from the store and Docker started right away.

@Samuel-Bie
Copy link

Samuel-Bie commented Sep 24, 2021

For some reason i dont know this have #12099 (comment) Solved issue.

@docker-robott
Copy link
Collaborator

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

@docker docker locked and limited conversation to collaborators Oct 24, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests