[英]Cannot run docker 4.14.1 WSL2 on Windows11
i'm trying tom run docker after setup and follow steps here also follow steps for Enable virtualization on Windows 11/BIOS我正在尝试 tom 在设置后运行 docker 并按照此处的步骤操作也按照在 Windows 11/BIOS 上启用虚拟化的步骤操作
after clicking start, service show running and then stop & desktop docker close.单击开始后,服务显示正在运行,然后停止并关闭桌面 docker。
I got these error below:我在下面收到这些错误:
docker version泊坞窗版本
C:\Windows\system32>docker version
error during connect: In the default daemon configuration on Windows, the docker client must be run with elevated privileges to connect.: Get "http://%2F%2F.%2Fpipe%2Fdocker_engine/v1.24/version": open //./pipe/docker_engine: The system cannot find the file specified.
Client:
Cloud integration: v1.0.29
Version: 20.10.21
API version: 1.41
Go version: go1.18.7
Git commit: baeda1f
Built: Tue Oct 25 18:08:16 2022
OS/Arch: windows/amd64
Context: default
Experimental: true
docker info泊坞信息
C:\Windows\system32>docker info
Client:
Context: default
Debug Mode: false
Plugins:
buildx: Docker Buildx (Docker Inc., v0.9.1)
compose: Docker Compose (Docker Inc., v2.12.2)
dev: Docker Dev Environments (Docker Inc., v0.0.3)
extension: Manages Docker extensions (Docker Inc., v0.2.13)
sbom: View the packaged-based Software Bill Of Materials (SBOM) for an image (Anchore Inc., 0.6.0)
scan: Docker Scan (Docker Inc., v0.21.0)
Server:
ERROR: error during connect: In the default daemon configuration on Windows, the docker client must be run with elevated privileges to connect.: Get "http://%2F%2F.%2Fpipe%2Fdocker_engine/v1.24/info": open //./pipe/docker_engine: The system cannot find the file specified.
errors pretty printing info
I tried below solution:我尝试了以下解决方案:
1- Open Powershell as administrator Launch command: & 'C:\Program Files\Docker\Docker\DockerCli.exe' -SwitchDaemon 1- 以管理员身份打开 Powershell 启动命令: & 'C:\Program Files\Docker\Docker\DockerCli.exe' -SwitchDaemon
2- delete config file AppData/Roaming/Docker & start Docker Desktop 2- 删除配置文件 AppData/Roaming/Docker & 启动 Docker Desktop
3-Net stop com.docker.service And then Net start com.docker.service 3-Net stop com.docker.service 然后Net start com.docker.service
C:\Windows\system32>Net start com.docker.service
System error 5 has occurred.
Access is denied.
INFO信息
C:\Windows\system32>wsl -l -v
NAME STATE VERSION
* Ubuntu-20.04 Running 2
I solved this Problem by open docker file >> properities > security > advanced我通过打开 docker file >> properties > security > advanced 解决了这个问题
(Note: check the owner: your windows account give it full control sometimes windows reset these access privileges (happen with me cause of windows defender). (注意:检查所有者:您的 Windows 帐户赋予它完全控制权,有时 Windows 会重置这些访问权限(发生在我身上,因为 Windows Defender)。
then click add >> select principal >> advance然后单击添加 >> 选择主体 >> 高级
and add security (also if not work add service) then apply the changes.并添加安全性(如果不起作用,也可以添加服务)然后应用更改。
This link check could help you to know how to see the error & other solutions此链接检查可以帮助您了解如何查看错误和其他解决方案
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.