Преглед на файлове

add support for device_cgroup_rules

Signed-off-by: Nicolas De Loof <[email protected]>
Nicolas De Loof преди 3 години
родител
ревизия
d8775c7a28
променени са 1 файла, в които са добавени 1 реда и са изтрити 0 реда
  1. 1 0
      pkg/compose/create.go

+ 1 - 0
pkg/compose/create.go

@@ -500,6 +500,7 @@ func getDeployResources(s types.ServiceConfig) container.Resources {
 		CPUShares:          s.CPUShares,
 		CPUPercent:         int64(s.CPUS * 100),
 		CpusetCpus:         s.CPUSet,
+		DeviceCgroupRules:  s.DeviceCgroupRules,
 	}
 
 	if s.PidsLimit != 0 {