浏览代码

LCOW: VHDX boot to read-only

Signed-off-by: John Howard <jhoward@microsoft.com>
John Howard 7 年之前
父节点
当前提交
17a24034bb
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      libcontainerd/client_windows.go

+ 1 - 1
libcontainerd/client_windows.go

@@ -343,7 +343,7 @@ func (clnt *client) createLinux(containerID string, checkpoint string, checkpoin
 		configuration.HvRuntime = &hcsshim.HvRuntime{
 		configuration.HvRuntime = &hcsshim.HvRuntime{
 			ImagePath:          lcowOpt.Config.Vhdx,
 			ImagePath:          lcowOpt.Config.Vhdx,
 			BootSource:         "Vhd",
 			BootSource:         "Vhd",
-			WritableBootSource: true,
+			WritableBootSource: false,
 		}
 		}
 	} else {
 	} else {
 		configuration.HvRuntime = &hcsshim.HvRuntime{
 		configuration.HvRuntime = &hcsshim.HvRuntime{