mirror of
https://github.com/docker/compose.git
synced 2026-06-23 17:58:40 +00:00
on ACI container ID is project_service and name is service
Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
This commit is contained in:
parent
1f5a77e67c
commit
446008a4b6
7 changed files with 38 additions and 156 deletions
|
|
@ -80,8 +80,8 @@ func runPs(ctx context.Context, opts composeOptions) error {
|
|||
ports = append(ports, fmt.Sprintf("%s->%d/%s", p.URL, p.TargetPort, p.Protocol))
|
||||
}
|
||||
}
|
||||
_, _ = fmt.Fprintf(w, "%s\t%s\t%s\n", container.Name, container.State, strings.Join(ports, ", "))
|
||||
_, _ = fmt.Fprintf(w, "%s\t%s\t%s\t%s\n", container.Name, container.Service, container.State, strings.Join(ports, ", "))
|
||||
}
|
||||
},
|
||||
"NAME", "STATE", "PORTS")
|
||||
"NAME", "SERVICE", "STATE", "PORTS")
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue