For Linux Containers
PS D:\> wsl –shutdown
PS D:\> wsl –export docker-desktop-data D:\docker-desktop-data.tar
PS D:\> wsl –unregister docker-desktop-data
取消註冊中…
PS D:\> wsl –import docker-desktop-data D:\Docker\data_linux D:\docker-desktop-data.tar –version 2
For Windows Containers
edit C:\ProgramData\Docker\config\daemon.json
befer
{
"registry-mirrors": [],
"insecure-registries": [],
"debug": true,
"experimental": false
}
after
{
"registry-mirrors": [],
"insecure-registries": [],
"debug": true,
"experimental": false,
"data-root": "D:\\Docker\\data_win"
}
沒有留言:
張貼留言