From d4e61d2b32843accb479c5acfde411f2d24a4b10 Mon Sep 17 00:00:00 2001 From: Simon L Date: Thu, 24 Aug 2023 15:43:26 +0200 Subject: [PATCH] disable selinux for watchtower and docker-socket-proxy Signed-off-by: Simon L --- php/src/Docker/DockerActionManager.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/php/src/Docker/DockerActionManager.php b/php/src/Docker/DockerActionManager.php index 3a3d9c61..d80b7e8e 100644 --- a/php/src/Docker/DockerActionManager.php +++ b/php/src/Docker/DockerActionManager.php @@ -499,6 +499,9 @@ class DockerActionManager } $mounts[] = ["Type" => "bind", "Source" => $volume->name, "Target" => $volume->mountPoint, "ReadOnly" => !$volume->isWritable, "BindOptions" => [ "Propagation" => "rshared"]]; } + // Special things for the watchtower and docker-socket-proxy container which should not be exposed in the containers.json + } elseif ($container->GetIdentifier() === 'nextcloud-aio-watchtower' || $container->GetIdentifier() === 'nextcloud-aio-docker-socket-proxy') { + $requestBody['HostConfig']['SecurityOpt'] = ["label=disabled"]; } if (count($mounts) > 0) {