Commit 4f6195de authored by odlai's avatar odlai

add response port

parent 63a6e9ab
......@@ -12,7 +12,7 @@ class DockerController extends Controller
{
//
private $docker_ip="http://192.168.50.222:2375";
private $docker_ip="http://192.168.42.203:2375";
public function init()
{
......@@ -27,7 +27,7 @@ class DockerController extends Controller
// dd($response[0]['Ports']);
for($i=0;$i<$container_count;$i++){
// $array = Arr::add('Id',$response[$i]['Id']);
array_push($result_content,['Names'=>$response[$i]['Names'],'Id'=>substr($response[$i]['Id'],0,12),
array_push($result_content,['Names'=>$response[$i]['Names'],'Id'=>substr($response[$i]['Id'],0,12),'Ports'=>$response[$i]['Ports'],
'State'=>$response[$i]['State'],'Status'=>$response[$i]['Status'],
'Created'=>$response[$i]['Created']]);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment