From b6b58d26c1ce221573d24654c24400e6fdbd7fd2 Mon Sep 17 00:00:00 2001 From: Guillaume Lours <705411+glours@users.noreply.github.com> Date: Thu, 6 Oct 2022 15:10:19 +0200 Subject: [PATCH] don't fail when trying to remove an orphan container during down command Signed-off-by: Guillaume Lours <705411+glours@users.noreply.github.com> --- pkg/compose/down.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/compose/down.go b/pkg/compose/down.go index bdcc4ca91..8d02e0271 100644 --- a/pkg/compose/down.go +++ b/pkg/compose/down.go @@ -270,7 +270,7 @@ func (s *composeService) removeContainers(ctx context.Context, w progress.Writer Force: true, RemoveVolumes: volumes, }) - if err != nil { + if err != nil && !errdefs.IsNotFound(err) { w.Event(progress.ErrorMessageEvent(eventName, "Error while Removing")) return err }