Merge pull request #2641 from nextcloud/enh/2506/allow-to-specify-read-only

allow to specify read_only root FS in containers definition
This commit is contained in:
Simon L
2023-06-06 10:34:03 +02:00
committed by GitHub
4 changed files with 18 additions and 0 deletions

View File

@@ -383,6 +383,8 @@ class DockerActionManager
}
$requestBody['HostConfig']['RestartPolicy']['Name'] = $container->GetRestartPolicy();
$requestBody['HostConfig']['ReadonlyRootfs'] = $container->GetReadOnlySetting();
$exposedPorts = [];
if ($container->GetInternalPort() !== 'host') {