From 4987a5297567c199a64280307377aa8745ad76cf Mon Sep 17 00:00:00 2001 From: Nicolas De Loof Date: Thu, 10 Jun 2021 09:49:09 +0200 Subject: [PATCH] fix hard vs soft ulimit close https://github.com/docker/compose-cli/issues/1769 Signed-off-by: Nicolas De Loof --- local/compose/create.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/local/compose/create.go b/local/compose/create.go index 6e472da4a..136aadf5a 100644 --- a/local/compose/create.go +++ b/local/compose/create.go @@ -453,8 +453,8 @@ func getDeployResources(s types.ServiceConfig) container.Resources { } resources.Ulimits = append(resources.Ulimits, &units.Ulimit{ Name: name, - Hard: int64(soft), - Soft: int64(hard), + Hard: int64(hard), + Soft: int64(soft), }) } return resources