開發學習紀錄
原資料路徑 C:\Users\[UserName]\Public\Documents\Hyper-V\Virtual hard disks\DockerDesktop.vhdx
C:\Users\[UserName]\Public\Documents\Hyper-V\Virtual hard disks\DockerDesktop.vhdx
移動後路徑 D:\Hyper-V\Public\DockerDesktop.vhdx
D:\Hyper-V\Public\DockerDesktop.vhdx
修改 C:\Users\[UserName]\AppData\Roaming\Docker\settings.json 的 dataFolder,設定成 D:\Hyper-V\Public\
C:\Users\[UserName]\AppData\Roaming\Docker\settings.json
dataFolder
D:\Hyper-V\Public\
Move Docker for Windows Hyper-V Disk VHDX to another drive
cd /etc/NetworkManager
修改 NetworkManager.conf,將 managed=false 改成 managed=true
NetworkManager.conf
[main] plugins=ifupdown,keyfile [ifupdown] managed=true
將 network-manager 重啟,網路即可正常連線
service network-manager restart