Display message if docker service fails to start

Occasionally, the array is started but the docker service fails to start (unmountable docker.img as an example)  
Toss up a message instead of simply displaying a blank page
This commit is contained in:
Squidly271
2017-12-09 12:55:13 -05:00
committed by GitHub
parent 69ae223a36
commit c53790cdc6

View File

@@ -19,4 +19,8 @@ if ($var['fsState'] != "Started") {
echo "<p class='notice'>Array must be <span class='strong big'>started</span> to view Docker containers.</p>";
return;
}
?>
if ( !is_file('/var/run/dockerd.pid') || (!is_dir('/proc/'.@file_get_contents('/var/run/dockerd.pid'))) ) {
echo "<p class='notice'>Docker Service failed to start.</p>";
exit;
}
?>