Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Y
Yu_MIS
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Yutanek
Yu_MIS
Commits
4f6195de
Commit
4f6195de
authored
Oct 12, 2019
by
odlai
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add response port
parent
63a6e9ab
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
DockerController.php
app/Http/Controllers/DockerController.php
+2
-2
No files found.
app/Http/Controllers/DockerController.php
View file @
4f6195de
...
@@ -12,7 +12,7 @@ class DockerController extends Controller
...
@@ -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
()
public
function
init
()
{
{
...
@@ -27,7 +27,7 @@ class DockerController extends Controller
...
@@ -27,7 +27,7 @@ class DockerController extends Controller
// dd($response[0]['Ports']);
// dd($response[0]['Ports']);
for
(
$i
=
0
;
$i
<
$container_count
;
$i
++
){
for
(
$i
=
0
;
$i
<
$container_count
;
$i
++
){
// $array = Arr::add('Id',$response[$i]['Id']);
// $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'
],
'State'
=>
$response
[
$i
][
'State'
],
'Status'
=>
$response
[
$i
][
'Status'
],
'Created'
=>
$response
[
$i
][
'Created'
]]);
'Created'
=>
$response
[
$i
][
'Created'
]]);
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment