mirror of
https://github.com/nextcloud/all-in-one.git
synced 2026-02-04 04:56:52 +00:00
Merge pull request #7468 from nextcloud/enh/7466/insert-max-shutdown-time
Some checks failed
Codespell / Check spelling (push) Waiting to run
Lint php / php-lint (push) Has been cancelled
PHP Deprecation Detector / PHP Deprecation Detector (push) Has been cancelled
Playwright Tests on push / test (push) Has been cancelled
Static analysis / static-psalm-analysis (push) Has been cancelled
Lint php / php-lint-summary (push) Has been cancelled
Some checks failed
Codespell / Check spelling (push) Waiting to run
Lint php / php-lint (push) Has been cancelled
PHP Deprecation Detector / PHP Deprecation Detector (push) Has been cancelled
Playwright Tests on push / test (push) Has been cancelled
Static analysis / static-psalm-analysis (push) Has been cancelled
Lint php / php-lint-summary (push) Has been cancelled
`CreateContainer`: also insert the max shutdown time into the container itself
This commit is contained in:
commit
49c9669fe1
1 changed files with 5 additions and 0 deletions
|
|
@ -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;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue