简体   繁体   English

WSL2 的 %USERPROFILE%\AppData\Local\Docker\wsl\distro\ext4.vhdx 文件中存储了什么?

[英]What is stored in the %USERPROFILE%\AppData\Local\Docker\wsl\distro\ext4.vhdx file for WSL2?

I am using Docker with WSL2 integration on Windows 10 Home.我在 Windows 10 Home 上使用 Docker 和 WSL2 集成。

While following this question to change the location of the docker images I came across this file:在按照这个问题更改 docker 图像的位置时,我遇到了这个文件:

%USERPROFILE%\AppData\Local\Docker\wsl\distro\ext4.vhdx

and couldn't find any explanation online regarding the function of this file.并且在网上找不到关于这个文件的 function 的任何解释。

When you run Docker Desktop WSL2 it'll create 2 vm's, one contains volumes, images, etc., and the other is related to the actual Docker Desktop itself, which is the one you're asking about.当您运行 Docker Desktop WSL2 时,它将创建 2 个虚拟机,一个包含卷、图像等,另一个与实际的 Docker 桌面本身相关,这就是您要询问的那个。 It's much smaller.它要小得多。

You can see both of them with: wsl -l -v您可以使用以下命令查看它们: wsl -l -v

The one you're asking about is for the docker-desktop vm.您要询问的是docker-desktop vm。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM