安装路径
安装的时候指定文件路径
- PowerShell
Start-Process 'Docker_Desktop_Installer.exe' -Wait install--installation-dir=D:\Docker
- CMD
start /w "" "Docker_Desktop_Installer.exe" install--installation-dir=D:\Docker
修改缓存
导出docker镜像文件
wsl --export docker-desktop-data "D:\docker\docker-desktop-data.tar"
wsl --export docker-desktop "D:\docker\docker-desktop.tar"
注销docker-desktop-data、docker-desktop
wsl --unregister docker-desktop-data
wsl --unregister docker-desktop
指定文件夹重新导入
wsl --import docker-desktop-data D:\docker\data "D:\docker\docker-desktop-data.tar" --version 2
wsl --import docker-desktop D:\docker\desktop "D:\docker\docker-desktop.tar" --version 2
评论区