找不到带有docker的Ubuntu WSL [英] Ubuntu WSL with docker could not be found
问题描述
在此WSL 1发行版中找不到命令 $ docker
.我们建议将此发行版转换为WSL 2并激活Docker Desktop设置中的WSL集成.
请参见
假设您的系统中已经安装了wsl 2,请以admin身份运行powershell:
运行 wsl --list --verbose
,它将为您提供wsl正在运行的进程的列表:
>wsl --list --verbose名称状态版本Ubuntu-20.04运行1
然后使用 wsl --set-version< your proc>进行切换.2
:
>wsl --set-version Ubuntu-20.04 2正在进行转换,这可能需要几分钟的时间...有关与WSL 2的主要区别的信息,请访问https://aka.ms/wsl2转换完成.
The command $ docker
could not be found in this WSL 1 distro.
We recommend to convert this distro to WSL 2 and activate
the WSL integration in Docker Desktop settings.
See https://docs.docker.com/docker-for-windows/wsl/ for details.
Not able to change to WSL2 and not able to install docker:
Assuming you already have wsl 2 in your system, run powershell as admin:
run wsl --list --verbose
which will give you a list of your wsl running processes:
> wsl --list --verbose
NAME STATE VERSION
Ubuntu-20.04 Running 1
Then to switch it with wsl --set-version <your proc> 2
:
> wsl --set-version Ubuntu-20.04 2
Conversion in progress, this may take a few minutes...
For information on key differences with WSL 2 please visit https://aka.ms/wsl2
Conversion complete.
这篇关于找不到带有docker的Ubuntu WSL的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!