mirror of
https://github.com/unraid/webgui.git
synced 2026-01-01 15:10:19 -06:00
32 lines
1.0 KiB
Plaintext
32 lines
1.0 KiB
Plaintext
Menu="Tasks:60"
|
|
Type="xmenu"
|
|
Code="e90b"
|
|
Lock="true"
|
|
Cond="exec(\"grep -o '^DOCKER_ENABLED=.yes' /boot/config/docker.cfg 2>/dev/null\")"
|
|
---
|
|
<?PHP
|
|
/* Copyright 2005-2023, Lime Technology
|
|
* Copyright 2012-2023, Bergware International.
|
|
* Copyright 2014-2021, Guilherme Jardim, Eric Schultz, Jon Panozzo.
|
|
*
|
|
* This program is free software; you can redistribute it and/or
|
|
* modify it under the terms of the GNU General Public License version 2,
|
|
* as published by the Free Software Foundation.
|
|
*
|
|
* The above copyright notice and this permission notice shall be included in
|
|
* all copies or substantial portions of the Software.
|
|
*/
|
|
?>
|
|
<?
|
|
$noticeMessage = null;
|
|
if ($var['fsState'] != 'Started') {
|
|
$noticeMessage = _('Array must be **Started** to view Docker containers');
|
|
} elseif (!is_file('/var/run/dockerd.pid') || (!is_dir('/proc/'.@file_get_contents('/var/run/dockerd.pid')))) {
|
|
$noticeMessage = _('Docker Service failed to start');
|
|
}
|
|
?>
|
|
|
|
<? if ($noticeMessage): ?>
|
|
<p class="notice"><?= $noticeMessage ?></p>
|
|
<? endif; ?>
|