add a bunch of debugging
This commit is contained in:
parent
ec67e1d947
commit
bc1e5183dd
|
@ -2,6 +2,8 @@ FROM sahrea/webserver
|
|||
|
||||
WORKDIR /var/www/html
|
||||
|
||||
RUN touch /var/run/docker.sock && chmod 777 /var/run/docker.sock
|
||||
|
||||
COPY index.php /var/www/html/index.php
|
||||
|
||||
COPY style/ /var/www/html/style/
|
||||
|
|
|
@ -46,5 +46,9 @@
|
|||
|
||||
$rawOutput = curl_exec($this->CurlClient);
|
||||
}
|
||||
|
||||
public function getError($container){
|
||||
return curl_strerror(curl_errno($this->CurlClient));
|
||||
}
|
||||
}
|
||||
?>
|
||||
|
|
|
@ -9,13 +9,14 @@ if(isset($_SESSION['LOGIN']))
|
|||
$allContainers = $dockerClient->getAllContainers();
|
||||
$container = NULL;
|
||||
|
||||
echo ("/".$_SESSION['CONATINER']);
|
||||
|
||||
foreach($allContainers as $thisContainer)
|
||||
{
|
||||
echo $thisContainer['id']." == ".$thisContainer['Names'][0]."\n";
|
||||
echo $thisContainer['Id']." == ".$thisContainer['Names'][0]."\n";
|
||||
|
||||
if($thisContainer['id'] == $_SESSION['CONATINER'] || $thisContainer['Names'][0] == ("/".$_SESSION['CONATINER']))
|
||||
if($thisContainer['Id'] == $_SESSION['CONATINER'] || $thisContainer['Names'][0] == ("/".$_SESSION['CONATINER']))
|
||||
$container = $thisContainer;
|
||||
|
||||
}
|
||||
|
||||
if($container == NULL)
|
||||
|
|
Loading…
Reference in New Issue