* Starting Docker: docker [ OK ]
Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?
docker does not seem to be working inside the WSL2 distro yet.
En línea: 63 Carácter: 5
+ throw "docker does not seem to be working inside the WSL2 distro ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : OperationStopped: (docker does not...L2 distro yet. :String) [], RuntimeException
+ FullyQualifiedErrorId : docker does not seem to be working inside the WSL2 distro yet.
DDEV似乎已经安装了,但是Docker不起作用。
PS C:\WINDOWS\system32> ddev -v
ddev version v1.24.2
PS C:\WINDOWS\system32> ddev version
time="2025-02-18T11:07:31+01:00" level=fatal msg="\x1b[31mUnable to get Docker context: unable to run 'docker context inspect' - please make sure Docker client is in path and up-to-date: exec: \"docker\": executable file not found in %PATH%\x1b[0m"
PS C:\WINDOWS\system32> docker -v
docker : The term 'docker' is not recognized as the name of a cmdlet, function, script file, or executable program.
Check if you typed the name correctly, or if you included a path, verify that the path is correct and try again.
At line: 1 Character: 1
+ docker -v
+ ~~~~~~
+ CategoryInfo : ObjectNotFound: (docker:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
试图在WSL终端中执行任何DDEV命令(DDEV Start,ddev config,ect)时,出现以下错误:
Could not connect to a Docker provider. Please start or install a Docker provider.
For install help go to: https://ddev.readthedocs.io/en/stable/users/install/docker-installation/
但在WSL终端中,它表明它们已安装:
$ docker -v
Docker version 27.5.1, build 9f9e405
$ ddev -v
ddev version v1.24.2
他试图找到错误的解决方案,但找不到任何东西。
我在另一台PC上使用了DDEV没有任何问题,但是在这里我无法正常工作。谁能帮我吗?
diD您安装Docker桌面,您是否启用了WSL集成? 由于您使用的是WSL2,因此应安装Windows的Docker桌面。如果未安装,请安装 对于WSL集成,打开Docker桌面,转到设置→资源→WSL集成。 确保启用与我的默认WSL发行版集成。