Browse code

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 authored on 2019/05/11 10:08:17
Showing 1 changed files
... ...
@@ -31,6 +31,7 @@ func newExecutor(root, cgroupParent string, net libnetwork.NetworkController, ro
31 31
 		CommandCandidates:   []string{"runc"},
32 32
 		DefaultCgroupParent: cgroupParent,
33 33
 		Rootless:            rootless,
34
+		NoPivot:             os.Getenv("DOCKER_RAMDISK") != "",
34 35
 	}, networkProviders)
35 36
 }
36 37