Skip to content

Commit 0ef4b90

Browse files
gloursndeloof
authored andcommitted
don't failed when trying to stop or rm services with no containers running
Signed-off-by: Guillaume Lours <[email protected]>
1 parent 908c121 commit 0ef4b90

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/compose/stop.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ func (s *composeService) stop(ctx context.Context, projectName string, options a
4444
}
4545

4646
project, err := s.projectFromName(containers, projectName, services...)
47-
if err != nil {
47+
if err != nil && !api.IsNotFoundError(err) {
4848
return err
4949
}
5050

0 commit comments

Comments
 (0)