查看docker状态
wsl -l -v --all
导出WSL子系统镜像
wsl --export docker-desktop "D:\Docker\wsl\distro\docker-desktop.tar"
wsl --export docker-desktop-data "D:\Docker\wsl\data\docker-desktop-data.tar"
注销现有的wsl
wsl --unregister docker-desktop
wsl --unregister docker-desktop-data
重新创建wsl系统
wsl --import docker-desktop "D:\Docker\wsl\distro" "D:\Docker\wsl\distro\docker-desktop.tar" --version 2
wsl --import docker-desktop-data "D:\Docker\wsl\data" "D:\Docker\wsl\data\docker-desktop-data.tar" --version 2
重启wsl:wsl --shutdown