mirror of https://github.com/docker/compose.git
add deploy.resourses.limits.pids to the managed resources
Signed-off-by: Guillaume Lours <guillaume.lours@docker.com>
This commit is contained in:
parent
638d78516a
commit
e111b651b3
|
@ -599,6 +599,9 @@ func setLimits(limits *types.Resource, resources *container.Resources) {
|
|||
resources.NanoCPUs = int64(f * 1e9)
|
||||
}
|
||||
}
|
||||
if limits.PIds > 0 {
|
||||
resources.PidsLimit = &limits.PIds
|
||||
}
|
||||
}
|
||||
|
||||
func setBlkio(blkio *types.BlkioConfig, resources *container.Resources) {
|
||||
|
|
Loading…
Reference in New Issue