diff --git a/php/containers-schema.json b/php/containers-schema.json index a5869ec9..91d32dc4 100644 --- a/php/containers-schema.json +++ b/php/containers-schema.json @@ -141,7 +141,7 @@ "type": "array", "items": { "type": "string", - "pattern": "^/[a-z/_0-9-]+$" + "pattern": "^/[a-z/_0-9-:]+$" } }, "volumes": { diff --git a/php/containers.json b/php/containers.json index 34a7b0d2..1ca7fa86 100644 --- a/php/containers.json +++ b/php/containers.json @@ -211,7 +211,7 @@ "nextcloud-aio" ], "tmpfs": [ - "/tmp" + "/tmp:exec" ] }, { diff --git a/php/src/Docker/DockerActionManager.php b/php/src/Docker/DockerActionManager.php index 45727a37..133b14c2 100644 --- a/php/src/Docker/DockerActionManager.php +++ b/php/src/Docker/DockerActionManager.php @@ -439,7 +439,11 @@ class DockerActionManager $tmpfs = []; foreach($container->GetTmpfs() as $tmp) { - $tmpfs[$tmp] = ""; + $mode = ""; + if (str_contains($tmp, ':')) { + $mode = explode(':', $tmp)[1]; + } + $tmpfs[$tmp] = $mode; } if (count($tmpfs) > 0) { $requestBody['HostConfig']['Tmpfs'] = $tmpfs;