Windows11 WSL2环境下Docker 4.14.1无法启动运行问题
Docker Desktop启动后立即停止问题
我已完成Docker安装,按照Docker官方Windows安装文档及Windows11/BIOS开启虚拟化步骤操作。点击启动后,Docker服务显示运行随即停止,Docker桌面也随之关闭。
执行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
已尝试的解决方案
- 以管理员身份打开PowerShell,执行命令:
& 'C:\Program Files\Docker\Docker\DockerCli.exe' -SwitchDaemon - 删除
AppData/Roaming/Docker目录下的配置文件后重启Docker Desktop - 执行
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.
WSL状态信息
C:\Windows\system32>wsl -l -v NAME STATE VERSION * Ubuntu-20.04 Running 2
内容的提问来源于stack exchange,提问作者UN..D
相关产品推荐
相关产品推荐

