mirror of
https://github.com/docker/compose.git
synced 2025-07-23 21:54:40 +02:00
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)
|
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) {
|
if !utils.StringContains(options.Services, service) {
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user