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:
Simon L.
2026-01-22 17:53:06 +01:00
committed by GitHub

View File

@@ -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;