From 329ce171d3258ead66237f5bcd1bb11cf70948d3 Mon Sep 17 00:00:00 2001 From: Alexander Morozov Date: Thu, 3 Dec 2015 08:42:39 -0800 Subject: [PATCH] Use /docker as cgroup parent instead of docker It means that containers will be created under root cgroup and not under daemon cgroup. Signed-off-by: Alexander Morozov Upstream-commit: 4b55765c11b3ae3bc02385ad17fe2a3c419e71bc Component: engine --- .../daemon/execdriver/native/template/default_template_linux.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/engine/daemon/execdriver/native/template/default_template_linux.go b/components/engine/daemon/execdriver/native/template/default_template_linux.go index 1303cb545b..680166f1dd 100644 --- a/components/engine/daemon/execdriver/native/template/default_template_linux.go +++ b/components/engine/daemon/execdriver/native/template/default_template_linux.go @@ -37,7 +37,7 @@ func New() *configs.Config { {Type: "NEWUSER"}, }), Cgroups: &configs.Cgroup{ - Parent: "docker", + Parent: "/docker", AllowAllDevices: false, MemorySwappiness: -1, },