小编Ali*_*ian的帖子

使用 mount -a 的 WSL 错误处理 fstab 失败

我安装了 WSL(适用于 Linux 的 Windows 子系统)来使用 Docker。我还在 WSL 中安装了 Ubuntu Linux。这是我的 WSL 列表:

PS C:\Windows\system32> wsl -l

Windows Subsystem for Linux Distributions:
docker-desktop-data (Default)
docker-desktop
Ubuntu-22.04
Run Code Online (Sandbox Code Playgroud)

为了配置我的 Docker 卷,我想在发行版中运行一些 Linux 命令docker-desktop-data,但在尝试访问 shell 时收到此错误:

PS C:\Windows\system32> wsl
Processing fstab with mount -a failed. 
<3>WSL (56) ERROR: CreateProcessEntryCommon:358: getpwuid(0) failed 2  
<3>WSL (56) ERROR: CreateProcessEntryCommon:362: getpwuid(0) failed 2
<3>WSL (56) ERROR: CreateProcessEntryCommon:570: execvpe /bin/sh failed 2
<3>WSL (56) ERROR: CreateProcessEntryCommon:579: Create process not expected to return   
Run Code Online (Sandbox Code Playgroud)

我的 Docker 守护进程和 Ubuntu …

windows-subsystem-for-linux

5
推荐指数
2
解决办法
1万
查看次数

标签 统计

windows-subsystem-for-linux ×1