mirror of
https://github.com/docker/compose.git
synced 2025-07-26 15:14:04 +02:00
filter containers after project has been rebuilt from resources
Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
This commit is contained in:
parent
9054f6a18b
commit
8c7951465e
@ -48,6 +48,10 @@ func (s *composeService) stop(ctx context.Context, projectName string, options a
|
|||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if len(services) > 0 {
|
||||||
|
containers = containers.filter(isService(services...))
|
||||||
|
}
|
||||||
|
|
||||||
return InReverseDependencyOrder(ctx, project, func(c context.Context, service string) error {
|
return InReverseDependencyOrder(ctx, project, func(c context.Context, service string) error {
|
||||||
return s.stopContainers(ctx, w, containers.filter(isService(service)), options.Timeout)
|
return s.stopContainers(ctx, w, containers.filter(isService(service)), options.Timeout)
|
||||||
})
|
})
|
||||||
|
Loading…
x
Reference in New Issue
Block a user