1
0
Эх сурвалжийг харах

don't failed when trying to stop or rm services with no containers running

Signed-off-by: Guillaume Lours <[email protected]>
Guillaume Lours 3 жил өмнө
parent
commit
0ef4b90fae
1 өөрчлөгдсөн 1 нэмэгдсэн , 1 устгасан
  1. 1 1
      pkg/compose/stop.go

+ 1 - 1
pkg/compose/stop.go

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