Skip to content

Commit

Permalink
don't failed when trying to stop or rm services with no containers ru…
Browse files Browse the repository at this point in the history
…nning

Signed-off-by: Guillaume Lours <[email protected]>
  • Loading branch information
glours authored and ndeloof committed Mar 7, 2022
1 parent 908c121 commit 0ef4b90
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/compose/stop.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down

0 comments on commit 0ef4b90

Please sign in to comment.