Update DockerClient.php

This commit is contained in:
Squidly271
2021-10-30 17:05:07 -04:00
committed by GitHub
parent 0b80a7683e
commit 2c66f2a869
@@ -283,7 +283,7 @@ class DockerTemplates {
return $WebUI;
}
public function getAllInfo($reload=false,$com=true) {
public function getAllInfo($reload=false,$com=true,$communityApplications=false) {
global $dockerManPaths, $host;
$DockerClient = new DockerClient();
$DockerUpdate = new DockerUpdate();
@@ -301,7 +301,9 @@ class DockerTemplates {
// read docker label for WebUI & Icon
if ($ct['Url'] && !$tmp['url']) $tmp['url'] = $ct['Url'];
if ($ct['Icon']) $tmp['icon'] = $ct['Icon'];
if (!is_file($tmp['icon']) || $reload) $tmp['icon'] = $this->getIcon($image,$name);
if ( ! $communityApplications ) {
if (!is_file($tmp['icon']) || $reload) $tmp['icon'] = $this->getIcon($image,$name);
}
if ($ct['Running']) {
$port = &$ct['Ports'][0];
$ip = ($ct['NetworkMode']=='host'||$port['NAT'] ? $host : $port['IP']);