mirror of https://github.com/docker/compose.git
filter status result by project name
Signed-off-by: aiordache <anca.iordache@docker.com>
This commit is contained in:
parent
799b799f30
commit
50c99ed7f6
|
@ -460,6 +460,9 @@ func (cs *aciComposeService) List(ctx context.Context, project string) ([]compos
|
|||
if _, found := group.Tags[composeContainerTag]; !found {
|
||||
continue
|
||||
}
|
||||
if project != "" && *group.Name != project {
|
||||
continue
|
||||
}
|
||||
state := compose.RUNNING
|
||||
for _, container := range *group.ContainerGroupProperties.Containers {
|
||||
containerState := convert.GetStatus(container, group)
|
||||
|
|
Loading…
Reference in New Issue