瀏覽代碼

Mount libcontainer state dir in tmpfs

Signed-off-by: Michael Crosby <crosbymichael@gmail.com>
Michael Crosby 10 年之前
父節點
當前提交
2b12b099b8
共有 1 個文件被更改,包括 6 次插入1 次删除
  1. 6 1
      daemon/execdriver/native/driver.go

+ 6 - 1
daemon/execdriver/native/driver.go

@@ -60,7 +60,12 @@ func NewDriver(root, initPath string) (*driver, error) {
 		cgm = libcontainer.SystemdCgroups
 	}
 
-	f, err := libcontainer.New(root, cgm, libcontainer.InitPath(reexec.Self(), DriverName))
+	f, err := libcontainer.New(
+		root,
+		cgm,
+		libcontainer.InitPath(reexec.Self(), DriverName),
+		libcontainer.TmpfsRoot,
+	)
 	if err != nil {
 		return nil, err
 	}