mirror of
https://github.com/nextcloud/all-in-one.git
synced 2026-02-16 18:50:20 +00: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"];
|
$requestBody['HostConfig']['SecurityOpt'] = ["apparmor:unconfined"];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Disable SELinux for AIO containers so that it does not break them
|
||||||
|
$requestBody['HostConfig']['SecurityOpt'] = ["label:disable"];
|
||||||
|
|
||||||
$mounts = [];
|
$mounts = [];
|
||||||
|
|
||||||
// Special things for the backup container which should not be exposed in the containers.json
|
// 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"]];
|
$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) {
|
if (count($mounts) > 0) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue