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:
Nicolas De Loof 2020-12-08 14:38:21 +01:00
parent 1f5a77e67c
commit 446008a4b6
No known key found for this signature in database
GPG key ID: 9858809D6F8F6E7E
7 changed files with 38 additions and 156 deletions

View file

@ -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")
}