浏览代码

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>
(cherry picked from commit b4247b433eec9f568dcfa3941af67abbd7ae8bf3)
Signed-off-by: Akihiro Suda <akihiro.suda.cz@hco.ntt.co.jp>
Akihiro Suda 6 年之前
父节点
当前提交
1c346f16a3
共有 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)
 }