Skip to content

Latest commit

 

History

History
23 lines (17 loc) · 607 Bytes

docker-desktop切换数据目录.md

File metadata and controls

23 lines (17 loc) · 607 Bytes
  1. 备份现有数据

    wsl --export docker-desktop-data "D:\Docker\data\docker-desktop-data.tar"
    wsl --export docker-desktop D:\data\docker-desktop\data.tar
  2. 删除原有数据

    wsl --unregister docker-desktop-data
    wsl --unregister docker-desktop
    wsl --list -v
  3. 导入数据到新盘

    wsl --import docker-desktop-data "D:\Docker\data" "D:\Docker\data\docker-desktop-data.tar" --version 2
    wsl --import docker-desktop D:\data\docker-desktop D:\data\docker-desktop\data.tar
  4. 参考