فهرست منبع

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 {