From 0ef4b90fae0d54bd4555eda877abf082afa4a2b1 Mon Sep 17 00:00:00 2001 From: Guillaume Lours Date: Mon, 7 Mar 2022 10:15:42 +0100 Subject: [PATCH] don't failed when trying to stop or rm services with no containers running Signed-off-by: Guillaume Lours --- pkg/compose/stop.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/compose/stop.go b/pkg/compose/stop.go index 9f394378399..e56ebfeb3de 100644 --- a/pkg/compose/stop.go +++ b/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 }