我如何在安装在 WSL2 上的 docker ce 中使用 docker 桌面创建的容器

How I can use the containers created by docker desktop in a docker ce installed on WSL2

docker 桌面的宽限期已到。 我安装了一些容器,我想在 WSL2 的新 docker ce 安装中使用它们。 新安装工作正常,但我无法找到 docker 桌面中存在的容器和卷的正确位置。

是否可以重复使用现有容器? 谢谢!

您的 windows C:/ 单位映射到 WSL2 中的 /mnt/c/

https://docs.microsoft.com/es-es/windows/wsl/faq

如果您的卷在此处:C:/Users/<your-user>/volume,那么您可以在此处找到它们 /mnt/c/users/<your-user>/volume