add LOG tp api

This commit is contained in:
Christopher 2020-10-24 16:40:49 +02:00
parent 2626c5a40a
commit 9d84264740
1 changed files with 6 additions and 0 deletions

View File

@ -67,6 +67,12 @@
echo $container['Status'];
}
if(strtoupper($_REQUEST['METODE']) == "LOG")
{
$logOutput = $dockerClient->getContainerLogs($_SESSION['CONTAINER']);
echo clean($logOutput);
}
if(strtoupper($_REQUEST['METODE']) == "COMMAND")
{
if(isset($_REQUEST['COMMAND']))