mirror of https://github.com/docker/compose.git
Ignore missing containers when compose stop -p
Signed-off-by: koooge <koooooge@gmail.com>
This commit is contained in:
parent
8ceaf49296
commit
54a525bbe6
|
@ -50,7 +50,7 @@ func (s *composeService) stop(ctx context.Context, projectName string, options a
|
|||
}
|
||||
|
||||
w := progress.ContextWriter(ctx)
|
||||
return InReverseDependencyOrder(ctx, project, false, func(c context.Context, service string) error {
|
||||
return InReverseDependencyOrder(ctx, project, true, func(c context.Context, service string) error {
|
||||
if !utils.StringContains(options.Services, service) {
|
||||
return nil
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue