first release

This commit is contained in:
Marc Wäckerlin
2015-11-15 23:07:04 +00:00
parent e7c6c6c664
commit 4c7ba2a6c5
14 changed files with 10183 additions and 9 deletions

9
html/action.php Normal file
View File

@@ -0,0 +1,9 @@
<?php
$container=$_REQUEST['container'];
$action=$_REQUEST['action'];
if (!preg_match(',^[a-f0-9]+$,', $container)) exit(1);
if (!preg_match(',start|stop|pause|unpause|rm,', $action)) exit(1);
exec('docker '.$action.' '.$container, $res, $ret);
if ($ret!=0) exit(1);
echo "executed $action";
?>