mirror of
https://github.com/nextcloud/all-in-one.git
synced 2026-05-21 02:40:09 +00:00
Merge pull request #7468 from nextcloud/enh/7466/insert-max-shutdown-time
`CreateContainer`: also insert the max shutdown time into the container itself
This commit is contained in:
@@ -356,6 +356,11 @@ readonly class DockerActionManager {
|
|||||||
|
|
||||||
$requestBody['HostConfig']['Init'] = $container->init;
|
$requestBody['HostConfig']['Init'] = $container->init;
|
||||||
|
|
||||||
|
$maxShutDownTime = $container->maxShutdownTime;
|
||||||
|
if ($maxShutDownTime > 0) {
|
||||||
|
$requestBody['StopTimeout'] = $maxShutDownTime;
|
||||||
|
}
|
||||||
|
|
||||||
$capAdds = $container->capAdd;
|
$capAdds = $container->capAdd;
|
||||||
if (count($capAdds) > 0) {
|
if (count($capAdds) > 0) {
|
||||||
$requestBody['HostConfig']['CapAdd'] = $capAdds;
|
$requestBody['HostConfig']['CapAdd'] = $capAdds;
|
||||||
|
|||||||
Reference in New Issue
Block a user