add apparmor_unconinfed to containers definition

Signed-off-by: Simon L <szaimen@e.mail.de>
This commit is contained in:
Simon L 2023-04-27 19:24:14 +02:00
parent 1118ba6764
commit eeeeb2f37b
5 changed files with 22 additions and 3 deletions

View file

@ -223,6 +223,11 @@ class ContainerDefinitionFetcher
$shmSize = $entry['shm_size'];
}
$apparmorUnconfined = false;
if (isset($entry['apparmor_unconfined'])) {
$apparmorUnconfined = $entry['apparmor_unconfined'];
}
$containers[] = new Container(
$entry['container_name'],
$displayName,
@ -238,6 +243,7 @@ class ContainerDefinitionFetcher
$devices,
$capAdd,
$shmSize,
$apparmorUnconfined,
$this->container->get(DockerActionManager::class)
);
}