Преглед изворни кода

Calming vet about type aliases from other package

Signed-off-by: Alexander Morozov <lk4d4@docker.com>
Alexander Morozov пре 10 година
родитељ
комит
5ce60217f1
1 измењених фајлова са 2 додато и 2 уклоњено
  1. 2 2
      daemon/execdriver/native/template/default_template.go

+ 2 - 2
daemon/execdriver/native/template/default_template.go

@@ -25,13 +25,13 @@ func New() *libcontainer.Config {
 			"KILL",
 			"KILL",
 			"AUDIT_WRITE",
 			"AUDIT_WRITE",
 		},
 		},
-		Namespaces: libcontainer.Namespaces{
+		Namespaces: libcontainer.Namespaces([]libcontainer.Namespace{
 			{Type: "NEWNS"},
 			{Type: "NEWNS"},
 			{Type: "NEWUTS"},
 			{Type: "NEWUTS"},
 			{Type: "NEWIPC"},
 			{Type: "NEWIPC"},
 			{Type: "NEWPID"},
 			{Type: "NEWPID"},
 			{Type: "NEWNET"},
 			{Type: "NEWNET"},
-		},
+		}),
 		Cgroups: &cgroups.Cgroup{
 		Cgroups: &cgroups.Cgroup{
 			Parent:          "docker",
 			Parent:          "docker",
 			AllowAllDevices: false,
 			AllowAllDevices: false,