Manage container:
Home
Status
name;
//}, $services))) {
// Util\createBanner('✗', "Service '$service' is unknown", 'bad');
// return;
//}
$status = Util\getDockerStatus($container);
if ($status->status === '-') {
Util\createBanner('✗', "Container '$container' not found", 'bad');
return;
}
if ($action === 'start' || $action === 'stop' || $action === 'restart' || $action === 'logs') {
// if ($action === 'start' || $action === 'stop' || $action === 'restart') {
$safeService = escapeshellarg($container);
Util\doShellExec('sudo docker ' . $action . ' ' . $safeService, '/manage.php?container=' . $container, $action);
}
Util\createStatusBanner($status);
?>
Status as reported by Docker
[Logs]
[Start]
[Stop]
[Restart]