diff --git a/plugins/dynamix.docker.manager/include/CreateDocker.php b/plugins/dynamix.docker.manager/include/CreateDocker.php index b56d06bc2..0504aafaf 100644 --- a/plugins/dynamix.docker.manager/include/CreateDocker.php +++ b/plugins/dynamix.docker.manager/include/CreateDocker.php @@ -113,13 +113,14 @@ if (isset($_POST['contName'])) { goto END; } } - $startContainer = true; + $startContainer = filter_var($_POST['contStart'],FILTER_VALIDATE_BOOLEAN) ; // Remove existing container if ($DockerClient->doesContainerExist($Name)) { // attempt graceful stop of container first $oldContainerInfo = $DockerClient->getContainerDetails($Name); if (!empty($oldContainerInfo) && !empty($oldContainerInfo['State']) && !empty($oldContainerInfo['State']['Running'])) { // attempt graceful stop of container first + $startContainer = true; stopContainer($Name); } // force kill container if still running after 10 seconds @@ -888,10 +889,16 @@ _(Privileged)_:   : _(Add another Path, Port, Variable, Label or Device)_ + +  +: _(Start Container After Install)_ + +   : "> + @@ -1054,7 +1061,7 @@ function load_contOverview() { // Handle code block being created by authors indenting (manually editing the xml and spacing) new_overview = new_overview.replaceAll(" ","    "); new_overview = marked(new_overview); - } else + } else new_overview = new_overview.replaceAll("\n",""); $("#contDescription").html(new_overview); }