diff --git a/plugins/dynamix.docker.manager/include/CreateDocker.php b/plugins/dynamix.docker.manager/include/CreateDocker.php index 1ac35defa..29be47bd2 100644 --- a/plugins/dynamix.docker.manager/include/CreateDocker.php +++ b/plugins/dynamix.docker.manager/include/CreateDocker.php @@ -422,6 +422,7 @@ function xmlToCommand($xml, $create_paths=false) { $Devices[] = escapeshellarg($hostConfig); } } + $postArgs = explode(";",$xml['PostArgs']); $cmd = sprintf($docroot.'/plugins/dynamix.docker.manager/scripts/docker create %s %s %s %s %s %s %s %s %s %s %s', $cmdName, $cmdNetwork, @@ -433,7 +434,7 @@ function xmlToCommand($xml, $create_paths=false) { implode(' --device=', $Devices), $xml['ExtraParams'], escapeshellarg($xml['Repository']), - $xml['PostArgs']); + $postArgs[0]); $cmd = trim(preg_replace('/\s+/', ' ', $cmd)); return [$cmd, $xml['Name'], $xml['Repository']]; @@ -441,7 +442,7 @@ function xmlToCommand($xml, $create_paths=false) { function execCommand($command) { // $command should have all its args already properly run through 'escapeshellarg' - + $descriptorspec = [ 0 => ["pipe", "r"], // stdin is a pipe that the child will read from 1 => ["pipe", "w"], // stdout is a pipe that the child will write to