1. 以管理员身份运行PowerShell
  2. 关闭所有WSL/Docker服务
wsl --shutdown
  1. 执行清理命令
Optimize-VHD -Path "D:\wsl\DockerDesktopWSL\data\ext4.vhdx" -Mode Full