mirror of
https://github.com/nextcloud/all-in-one.git
synced 2026-02-04 13:06:53 +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:
parent
9e3acb9f68
commit
8fb3126ce7
1 changed files with 5 additions and 0 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue