makemkv: allow it to access the necessary devices (#8276)

This commit is contained in:
Simon L.
2026-06-09 14:45:19 +02:00
committed by GitHub
2 changed files with 7 additions and 0 deletions
@@ -37,6 +37,9 @@
"writeable": false
}
],
"cap_add": [
"SYS_RAWIO"
],
"environment": [
"TZ=%TIMEZONE%",
"SECURE_CONNECTION=1",
+4
View File
@@ -482,6 +482,10 @@ readonly class DockerActionManager {
} elseif ($container->identifier === 'nextcloud-aio-scrutiny') {
// Allow it to access block devices
$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) {