added doku for installatin in README
This commit is contained in:
@@ -17,7 +17,7 @@ if ($ret==0) {
|
||||
foreach ($containers as $c) {
|
||||
$name = preg_replace(',^/,', '', $c['Name']);
|
||||
$ports = null;
|
||||
if ($c['NetworkSettings']['Ports'])
|
||||
if ($c['NetworkSettings']['Ports']) {
|
||||
foreach ($c['NetworkSettings']['Ports'] as $ps) {
|
||||
if (isset($ps))
|
||||
foreach ($ps as $p) {
|
||||
@@ -26,6 +26,16 @@ if ($ret==0) {
|
||||
else $ports = $p['HostPort'];
|
||||
}
|
||||
}
|
||||
} elseif ($c['HostConfig']['PortBindings']) {
|
||||
foreach ($c['HostConfig']['PortBindings'] as $ps) {
|
||||
if (isset($ps))
|
||||
foreach ($ps as $p) {
|
||||
if (isset($p['HostPort']))
|
||||
if (isset($ports)) $ports .= ", ".$p['HostPort'];
|
||||
else $ports = $p['HostPort'];
|
||||
}
|
||||
}
|
||||
}
|
||||
$attrs=$name.'\\n'.$c['Config']['Image'].'",URL="javascript:details('."'".$c['Id']."'".')",style=filled';
|
||||
if (isset($ports)) $attrs = $ports.'\\n'.$attrs.',peripheries=2';
|
||||
if ($c['State']['Dead']) $attrs.=',fillcolor=red';
|
||||
|
Reference in New Issue
Block a user