Просмотр исходного кода

fix hard vs soft ulimit

close https://github.com/docker/compose-cli/issues/1769

Signed-off-by: Nicolas De Loof <[email protected]>
Nicolas De Loof 4 лет назад
Родитель
Сommit
4987a52975
1 измененных файлов с 2 добавлено и 2 удалено
  1. 2 2
      local/compose/create.go

+ 2 - 2
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