瀏覽代碼

builder-next: support DOCKER_RAMDISK

For https://github.com/kubernetes/minikube/issues/4143

Signed-off-by: Akihiro Suda <akihiro.suda.cz@hco.ntt.co.jp>
Akihiro Suda 6 年之前
父節點
當前提交
b4247b433e
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. 1 0
      builder/builder-next/executor_unix.go

+ 1 - 0
builder/builder-next/executor_unix.go

@@ -31,6 +31,7 @@ func newExecutor(root, cgroupParent string, net libnetwork.NetworkController, ro
 		CommandCandidates:   []string{"runc"},
 		DefaultCgroupParent: cgroupParent,
 		Rootless:            rootless,
+		NoPivot:             os.Getenv("DOCKER_RAMDISK") != "",
 	}, networkProviders)
 }