Merge pull request #220 from Squidly271/patch-3

Display message if docker service fails to start
This commit is contained in:
tom mortensen
2017-12-10 11:25:25 -08:00
committed by GitHub
+5 -1
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>";
return;
}
?>