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:
Guillaume Lours 2022-03-07 10:15:42 +01:00 committed by Nicolas De loof
parent 908c12120e
commit 0ef4b90fae
1 changed files with 1 additions and 1 deletions

View File

@ -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
}