Skip to content

Commit e111b65

Browse files
committed
add deploy.resourses.limits.pids to the managed resources
Signed-off-by: Guillaume Lours <[email protected]>
1 parent 638d785 commit e111b65

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

pkg/compose/create.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -599,6 +599,9 @@ func setLimits(limits *types.Resource, resources *container.Resources) {
599599
resources.NanoCPUs = int64(f * 1e9)
600600
}
601601
}
602+
if limits.PIds > 0 {
603+
resources.PidsLimit = &limits.PIds
604+
}
602605
}
603606

604607
func setBlkio(blkio *types.BlkioConfig, resources *container.Resources) {

0 commit comments

Comments
 (0)