我正在尝试按照以下说明从 PowerShell 安装 DDEV:https://www.drupal.org/docs/develop/local-server-setup/windows-development-environment/installing-drupal-with-ddev-in-wsl2-on-windows/installing-docker-ddev-drupal-in-wsl2
我可以正常运行第一个 PowerShell 命令(在“以管理员身份运行”窗口中):
Set-ExecutionPolicy Bypass -Scope Process -Force;
[System.Net.ServicePointManager]::SecurityProtocol =
[System.Net.ServicePointManager]::SecurityProtocol -bor 3072;
一切顺利,没有任何错误。以下命令:
iex ((New-Object
System.Net.WebClient).DownloadString('https://raw.githubusercontent.com/ddev/ddev/master/scripts/install_ddev_wsl2_docker_inside.ps1'))
返回以下错误:
Docker Desktop integration is enabled with the default distro and it must but turned off.
At line:36 char:5
+ throw "Docker Desktop integration is enabled with the default dis ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : OperationStopped: (Docker Desktop ...but turned off.:String) [], RuntimeException
+ FullyQualifiedErrorId : Docker Desktop integration is enabled with the default distro and it must but turned off
我确实曾经安装过 Docker Desktop,但我卸载了它。它不再出现在控制面板 --> 程序和功能中。如果我wsl.exe -l -v
在常规(非管理员)PowerShell 窗口中运行该命令,它会返回以下内容:
NAME STATE VERSION
* Ubuntu Running 2
如果我在管理 PowerShell 窗口中运行相同的命令,我会得到“适用于 Linux 的 Windows 子系统没有安装发行版...”
管理员 PowerShell 在哪里可以看到 Docker Desktop 的残余,我该如何彻底摆脱它?
答案1
以普通用户身份运行脚本,而不是从管理员帐户运行。在这种情况下,说明是错误的。