From 4b55765c11b3ae3bc02385ad17fe2a3c419e71bc 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 --- daemon/execdriver/native/template/default_template_linux.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/daemon/execdriver/native/template/default_template_linux.go b/daemon/execdriver/native/template/default_template_linux.go index 1303cb545b..680166f1dd 100644 --- a/daemon/execdriver/native/template/default_template_linux.go +++ b/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, },