mirror of
https://github.com/docker/compose.git
synced 2025-04-08 17:05:13 +02:00
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…
x
Reference in New Issue
Block a user