mirror of
https://github.com/docker/compose.git
synced 2025-07-27 23:54:04 +02:00
fix hard vs soft ulimit
close https://github.com/docker/compose-cli/issues/1769 Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
This commit is contained in:
parent
f43899250f
commit
4987a52975
@ -453,8 +453,8 @@ func getDeployResources(s types.ServiceConfig) container.Resources {
|
|||||||
}
|
}
|
||||||
resources.Ulimits = append(resources.Ulimits, &units.Ulimit{
|
resources.Ulimits = append(resources.Ulimits, &units.Ulimit{
|
||||||
Name: name,
|
Name: name,
|
||||||
Hard: int64(soft),
|
Hard: int64(hard),
|
||||||
Soft: int64(hard),
|
Soft: int64(soft),
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
return resources
|
return resources
|
||||||
|
Loading…
x
Reference in New Issue
Block a user