mirror of
https://github.com/nextcloud/all-in-one.git
synced 2025-01-23 05:58:49 +08:00
Merge pull request #4047 from nextcloud/enh/4039/disable-selinux
disable SELinux for AIO containers
This commit is contained in:
commit
18237f59a7
1 changed files with 3 additions and 3 deletions
|
@ -522,6 +522,9 @@ class DockerActionManager
|
|||
$requestBody['HostConfig']['SecurityOpt'] = ["apparmor:unconfined"];
|
||||
}
|
||||
|
||||
// Disable SELinux for AIO containers so that it does not break them
|
||||
$requestBody['HostConfig']['SecurityOpt'] = ["label:disable"];
|
||||
|
||||
$mounts = [];
|
||||
|
||||
// Special things for the backup container which should not be exposed in the containers.json
|
||||
|
@ -553,9 +556,6 @@ 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:disable"];
|
||||
}
|
||||
|
||||
if (count($mounts) > 0) {
|
||||
|
|
Loading…
Reference in a new issue