makemkv: allow it to access the necessary devices

Signed-off-by: Simon L. <szaimen@e.mail.de>
This commit is contained in:
Simon L.
2026-06-08 11:56:13 +02:00
parent 0ca4307bcb
commit e30f416d55
2 changed files with 7 additions and 0 deletions
@@ -37,6 +37,9 @@
"writeable": false "writeable": false
} }
], ],
"cap_add": [
"SYS_RAWIO"
],
"environment": [ "environment": [
"TZ=%TIMEZONE%", "TZ=%TIMEZONE%",
"SECURE_CONNECTION=1", "SECURE_CONNECTION=1",
+4
View File
@@ -482,6 +482,10 @@ readonly class DockerActionManager {
} elseif ($container->identifier === 'nextcloud-aio-scrutiny') { } elseif ($container->identifier === 'nextcloud-aio-scrutiny') {
// Allow it to access block devices // Allow it to access block devices
$requestBody['HostConfig']['DeviceCgroupRules'] = ["b *:* rmw"]; $requestBody['HostConfig']['DeviceCgroupRules'] = ["b *:* rmw"];
// Special things for the makemkv container which should not be exposed in the containers.json
} elseif ($container->identifier === 'nextcloud-aio-makemkv') {
// Allow it to access block devices
$requestBody['HostConfig']['DeviceCgroupRules'] = ["b 11:* rmw", "c 21:* rmw"];
} }
if (count($mounts) > 0) { if (count($mounts) > 0) {