mirror of https://github.com/docker/compose.git
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…
Reference in New Issue