add deploy.resourses.limits.pids to the managed resources

Signed-off-by: Guillaume Lours <guillaume.lours@docker.com>
This commit is contained in:
Guillaume Lours 2022-06-10 11:05:17 +02:00
parent 638d78516a
commit e111b651b3
1 changed files with 3 additions and 0 deletions

View File

@ -599,6 +599,9 @@ func setLimits(limits *types.Resource, resources *container.Resources) {
resources.NanoCPUs = int64(f * 1e9) resources.NanoCPUs = int64(f * 1e9)
} }
} }
if limits.PIds > 0 {
resources.PidsLimit = &limits.PIds
}
} }
func setBlkio(blkio *types.BlkioConfig, resources *container.Resources) { func setBlkio(blkio *types.BlkioConfig, resources *container.Resources) {