mirror of
https://github.com/docker/compose.git
synced 2025-07-21 20:54:32 +02:00
don't failed when trying to stop or rm services with no containers running
Signed-off-by: Guillaume Lours <guillaume.lours@docker.com>
This commit is contained in:
parent
908c12120e
commit
0ef4b90fae
@ -44,7 +44,7 @@ func (s *composeService) stop(ctx context.Context, projectName string, options a
|
||||
}
|
||||
|
||||
project, err := s.projectFromName(containers, projectName, services...)
|
||||
if err != nil {
|
||||
if err != nil && !api.IsNotFoundError(err) {
|
||||
return err
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user