allow to specify read_only root FS in containers definition

Signed-off-by: Simon L <szaimen@e.mail.de>
This commit is contained in:
Simon L 2023-05-31 16:46:19 +02:00
parent 27d99efebf
commit cf1efa9bb0
4 changed files with 18 additions and 0 deletions

View file

@ -254,6 +254,11 @@ class ContainerDefinitionFetcher
$nextcloudExecCommands = $entry['nextcloud_exec_commands'];
}
$readOnlyRootFs = false;
if (isset($entry['read_only'])) {
$readOnlyRootFs = $entry['read_only'];
}
$containers[] = new Container(
$entry['container_name'],
$displayName,
@ -272,6 +277,7 @@ class ContainerDefinitionFetcher
$apparmorUnconfined,
$backupVolumes,
$nextcloudExecCommands,
$readOnlyRootFs,
$this->container->get(DockerActionManager::class)
);
}