Skip to content
This repository was archived by the owner on Nov 27, 2023. It is now read-only.

Commit 4987a52

Browse files
committed
fix hard vs soft ulimit
close #1769 Signed-off-by: Nicolas De Loof <[email protected]>
1 parent f438992 commit 4987a52

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

local/compose/create.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -453,8 +453,8 @@ func getDeployResources(s types.ServiceConfig) container.Resources {
453453
}
454454
resources.Ulimits = append(resources.Ulimits, &units.Ulimit{
455455
Name: name,
456-
Hard: int64(soft),
457-
Soft: int64(hard),
456+
Hard: int64(hard),
457+
Soft: int64(soft),
458458
})
459459
}
460460
return resources

0 commit comments

Comments
 (0)