mirror of
https://github.com/nextcloud/all-in-one.git
synced 2026-05-28 14:30:13 +00:00
CreateContainer: also insert the max shutdown time into the container itself
Signed-off-by: Simon L. <szaimen@e.mail.de>
This commit is contained in:
@@ -356,6 +356,11 @@ readonly class DockerActionManager {
|
||||
|
||||
$requestBody['HostConfig']['Init'] = $container->init;
|
||||
|
||||
$maxShutDownTime = $container->maxShutdownTime;
|
||||
if ($maxShutDownTime > 0) {
|
||||
$requestBody['StopTimeout'] = $maxShutDownTime;
|
||||
}
|
||||
|
||||
$capAdds = $container->capAdd;
|
||||
if (count($capAdds) > 0) {
|
||||
$requestBody['HostConfig']['CapAdd'] = $capAdds;
|
||||
|
||||
Reference in New Issue
Block a user