فهرست منبع

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 <lk4d4@docker.com>
Alexander Morozov 9 سال پیش
والد
کامیت
4b55765c11
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  1. 1 1
      daemon/execdriver/native/template/default_template_linux.go

+ 1 - 1
daemon/execdriver/native/template/default_template_linux.go

@@ -37,7 +37,7 @@ func New() *configs.Config {
 			{Type: "NEWUSER"},
 			{Type: "NEWUSER"},
 		}),
 		}),
 		Cgroups: &configs.Cgroup{
 		Cgroups: &configs.Cgroup{
-			Parent:           "docker",
+			Parent:           "/docker",
 			AllowAllDevices:  false,
 			AllowAllDevices:  false,
 			MemorySwappiness: -1,
 			MemorySwappiness: -1,
 		},
 		},