From b189e7b773a9cf9c7d9d1a1661d52150a8d29159 Mon Sep 17 00:00:00 2001 From: Simon L Date: Wed, 4 Jan 2023 15:57:54 +0100 Subject: [PATCH] add ulimit for the talk container due to a bug in libwebsockets Signed-off-by: Simon L --- php/src/Docker/DockerActionManager.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/php/src/Docker/DockerActionManager.php b/php/src/Docker/DockerActionManager.php index dfe7cc3e..989ba593 100644 --- a/php/src/Docker/DockerActionManager.php +++ b/php/src/Docker/DockerActionManager.php @@ -423,6 +423,10 @@ class DockerActionManager if(count($mounts) > 0) { $requestBody['HostConfig']['Mounts'] = $mounts; } + // Special things for the talk container which should not be exposed in the containers.json + } elseif ($container->GetIdentifier() === 'nextcloud-aio-talk') { + // This is needed due to a bug in libwebsockets which cannot handle unlimited ulimits + $requestBody['HostConfig']['Ulimits'] = [["Name" => "nofile", "Hard" => 200000, "Soft" => 200000]]; } $url = $this->BuildApiUrl('containers/create?name=' . $container->GetIdentifier());