[英]Docker Daemon not running on windows 11
I am a beginner into Docker stuff, I am on windows 11 and whenever I try to open docker desktop it doesn't open.我是 Docker 东西的初学者,我在 windows 11 上,每当我尝试打开 docker 桌面时,它都打不开。
Always this error message shows up, also whenever I try to run
docker ps
or docker images
or anything related to docker it always shows this error总是显示此错误消息,每当我尝试运行
docker ps
或docker images
或与 docker 相关的任何内容时,它总是显示此错误can anyone help
谁能帮忙
I have turned on hyper-v, wsl etc but nothing seems to work我已经打开了 hyper-v、wsl 等,但似乎没有任何效果
That is followed by docker/for-win
issue 12413 , and this question (which suggests a fresh installation of Windows 11 itself!)接下来是
docker/for-win
issue 12413和这个问题(这表明 Windows 11 本身的全新安装!)
Only workaround so far (to avoid reinstalling W11):到目前为止只有解决方法(以避免重新安装 W11):
I tried reinstalling a couple times and different versions and nothing worked, the UI would just never show up.
我尝试重新安装几次和不同的版本,但没有任何效果,用户界面永远不会出现。
The only solution really was to delete
C:\Users\<username>\AppData\Roaming\Docker
andC:\Users\<username>\AppData\Roaming\Docker Desktop
.唯一的解决方案是删除
C:\Users\<username>\AppData\Roaming\Docker
和C:\Users\<username>\AppData\Roaming\Docker Desktop
。
I had the same issue, tried to get assistance from docker support and did lota google but nothing worked.我有同样的问题,试图从 docker 支持获得帮助,并做了很多谷歌,但没有任何效果。 I had a gut feeling that the issue was not within the Docker Desktop as i have tried all the options including deleting docker appdata etc. sov, i started investigating WSL and noticed the distros docker-desktop-data, docker-desktop was in stopped & uninstalling state.
我有一种直觉认为问题不在 Docker 桌面内,因为我尝试了所有选项,包括删除 docker appdata 等 sov,我开始调查 WSL 并注意到发行版 docker-desktop-data,docker-desktop 处于停止状态卸载 state。 These states never changed and appears even after uninstalling Docker desktop and windows reboot.
即使在卸载 Docker 桌面和 windows 重新启动后,这些状态也不会改变并出现。
PowerShell (admin) PowerShell(管理员)
wsl -l -v wsl -l -v
I removed those distros after uninstalling docker desktop completely (including deleting docker folders from appdata manually)我在完全卸载 docker 桌面后删除了这些发行版(包括手动从 appdata 中删除 docker 文件夹)
PowerShell (admin) PowerShell(管理员)
wsl --unregister "DistributionName" wsl --unregister "DistributionName"
Replacing "DistributionName" with the name of your targeted distribution will unregister that distribution from WSL so it can be reinstalled or cleaned up.将“DistributionName”替换为目标发行版的名称将从 WSL 中注销该发行版,以便可以重新安装或清理它。 Caution: Once unregistered, all data, settings, and software associated with that distribution will be permanently lost .
注意:一旦取消注册,与该分发相关的所有数据、设置和软件都将永久丢失。 Reinstalling from the store will install a clean copy of the distribution.
从商店重新安装将安装分发的干净副本。 For example, wsl --unregister "DistributionName" would remove "DistributionName" from the distributions available in WSL.
例如,wsl --unregister "DistributionName" 将从 WSL 中可用的分发中删除 "DistributionName"。 Running wsl --list will reveal that it is no longer listed.
运行 wsl --list 将显示它不再列出。
PowerShell (admin) PowerShell(管理员)
wsl --unregister docker-desktop-data wsl --unregister docker-desktop-data
wsl --unregister docker-desktop wsl --unregister docker-desktop
Finally, reinstalled Docker desktop and its associated applications.最后,重新安装 Docker 桌面及其相关应用程序。 It started working perfectly!
它开始完美运行!
I was facing similar issue with Windows 10 and Docker Desktop 4.16.3 (96739) I had disabled WSL2 based engine.我在 Windows 10 和 Docker Desktop 4.16.3 (96739) 上遇到了类似的问题,我禁用了基于 WSL2 的引擎。
Just executed below command using Power shell( admin):刚刚使用 Power shell(admin) 执行了以下命令:
wsl --unregister docker-desktop-data
wsl --unregister docker-desktop
And my issue got solved like snap of finger.我的问题像弹指一样解决了。
Thanks谢谢
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.