From e774c8a6a5a349786c3ff66b7bbb29852bd95232 Mon Sep 17 00:00:00 2001 From: Squidly271 Date: Sat, 17 Feb 2024 07:13:16 -0500 Subject: [PATCH] Docker ignore empty paths --- emhttp/plugins/dynamix.docker.manager/include/Helpers.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/emhttp/plugins/dynamix.docker.manager/include/Helpers.php b/emhttp/plugins/dynamix.docker.manager/include/Helpers.php index 3064d9066..dff9214a1 100644 --- a/emhttp/plugins/dynamix.docker.manager/include/Helpers.php +++ b/emhttp/plugins/dynamix.docker.manager/include/Helpers.php @@ -270,6 +270,8 @@ function xmlToCommand($xml, $create_paths=false) { $Mode = strval($config['Mode']); if ($confType != "device" && !strlen($containerConfig)) continue; if ($confType == "path") { + if ( ! trim($hostConfig) || ! trim($containerConfig) ) + continue; $Volumes[] = escapeshellarg($hostConfig).':'.escapeshellarg($containerConfig).':'.escapeshellarg($Mode); if (!file_exists($hostConfig) && $create_paths) { @mkdir($hostConfig, 0777, true);