You need to enable JavaScript to run this app.
最新活动
大模型
产品
解决方案
定价
生态与合作
支持与服务
开发者
了解我们

无法在PowerShell中安装DDEV:Docker Desktop残留引发WSL集成错误

无法在PowerShell中安装DDEV:Docker Desktop残留引发WSL集成错误

我正尝试从PowerShell安装DDEV,遵循WSL2环境下安装DDEV的相关步骤。

我能正常运行第一个PowerShell命令(在“以管理员身份运行”的窗口中):

Set-ExecutionPolicy Bypass -Scope Process -Force; 
[System.Net.ServicePointManager]::SecurityProtocol = 
[System.Net.ServicePointManager]::SecurityProtocol -bor 3072;

这个命令执行后没有报错。但执行第二个命令(下载并运行DDEV官方的WSL2安装脚本)时:

iex ((New-Object 
System.Net.WebClient).DownloadString('DDEV官方WSL2安装脚本地址'))

返回了如下错误:

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,但已经卸载了,它不再出现在“控制面板→程序和功能”中。如果我在普通(非管理员)PowerShell窗口运行命令 wsl.exe -l -v,返回结果是:

NAME      STATE           VERSION
* Ubuntu    Running         2

但在管理员PowerShell窗口中运行同一个命令,却得到“Windows Subsystem for Linux has no installed distributions...”的提示。

请问管理员PowerShell是在哪里看到Docker Desktop的残留的?我该如何彻底清除这些残留?

备注:内容来源于stack exchange,提问作者MrSnrub

火山引擎 最新活动