added doku for installatin in README
This commit is contained in:
		@@ -10,7 +10,7 @@ echo "</thead><tbody>";
 | 
			
		||||
foreach ($containers as $c) {
 | 
			
		||||
  $name = preg_replace(',^/,', '', $c['Name']);
 | 
			
		||||
  $ports = "<ul>";
 | 
			
		||||
  if ($c['NetworkSettings']['Ports'])
 | 
			
		||||
  if ($c['NetworkSettings']['Ports']) {
 | 
			
		||||
    foreach ($c['NetworkSettings']['Ports'] as $from => $to) {
 | 
			
		||||
      if ($to)
 | 
			
		||||
        foreach ($to as $p) {
 | 
			
		||||
@@ -18,6 +18,15 @@ foreach ($containers as $c) {
 | 
			
		||||
            $ports.="<li>".($p['HostIp']!="0.0.0.0"?$p['HostIp'].":":"").$p['HostPort'].':'.$from.'</li>';
 | 
			
		||||
        }
 | 
			
		||||
    }
 | 
			
		||||
  } elseif ($c['HostConfig']['PortBindings']) {
 | 
			
		||||
    foreach ($c['HostConfig']['PortBindings'] as $from => $to) {
 | 
			
		||||
      if ($to)
 | 
			
		||||
        foreach ($to as $p) {
 | 
			
		||||
          if (isset($p['HostPort']))
 | 
			
		||||
            $ports.="<li>".($p['HostIp']&&$p['HostIp']!="0.0.0.0"?$p['HostIp'].":":"").$p['HostPort'].':'.$from.'</li>';
 | 
			
		||||
        }
 | 
			
		||||
    }
 | 
			
		||||
  }
 | 
			
		||||
  $ports .= "</ul>";
 | 
			
		||||
  $links = "<ul>";
 | 
			
		||||
  if ($c['HostConfig']['Links'])
 | 
			
		||||
@@ -29,7 +38,7 @@ foreach ($containers as $c) {
 | 
			
		||||
  elseif ($c['State']['Restarting']) {$status = "restarted"; $actions=Array();}
 | 
			
		||||
  elseif ($c['State']['Paused']) {$status = "paused"; $actions=Array("unpause", "rm");}
 | 
			
		||||
  elseif ($c['State']['Running']) {$status = "running"; $actions=Array("pause", "stop");}
 | 
			
		||||
  else {$status="dead"; $actions=Array("start", "remove");}
 | 
			
		||||
  else {$status="dead"; $actions=Array("start", "rm");}
 | 
			
		||||
  $action="";
 | 
			
		||||
  foreach($actions as $a)
 | 
			
		||||
    $action.='<a class="toolbutton" href="javascript:action('."'".$c['Id']."', '".$a."'".');">'.$a.'</a>';
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user