【发布时间】:2022-01-23 17:30:36
【问题描述】:
我想使用 rsync 将 Docker 映像从我的 Windows10 PC 传输到另一台 Fedora。我不能使用 WSL,我需要 WSL2,正如编译器所说:
ubu@DESKTOP-QL4RO3V:/mnt/c/Windows/system32$ docker images
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.
For details about using Docker Desktop with WSL 2, visit:
https://docs.docker.com/go/wsl2/
但我认为,由于我有 Docker 桌面,它正在使用 WSL2:
但我不知道如何运行我自己使用的 wsl2 Docker。
PS C:\Users\antoi> wsl -l -v
NAME STATE VERSION
* Ubuntu Running 1
docker-desktop-data Running 2
docker-desktop Running 2
【问题讨论】:
-
请说明您所指的“访问”类型。
-
在 Docker Desktop 的配置页面上有一个使用基于 WSL2 的引擎的选项,检查它,它应该可以在 WSL2 之上运行
-
当然@MathiasNikkel Docker 桌面上的配置页面在哪里?
-
在您的屏幕上,标题上有一个设置选项,那里有一个常规选项卡,此配置如下所示:[link]cdn.discordapp.com/attachments/784092634532675626/…
标签: docker windows-10 wsl-2