浏览代码

Ignore not only auto-removed containers but also "removal in progress" for orphan containers

Signed-off-by: Guillaume Tardif <[email protected]>
Guillaume Tardif 2 年之前
父节点
当前提交
37d15d7e6b
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      pkg/compose/down.go

+ 1 - 1
pkg/compose/down.go

@@ -274,7 +274,7 @@ func (s *composeService) removeContainers(ctx context.Context, w progress.Writer
 				Force:         true,
 				RemoveVolumes: volumes,
 			})
-			if err != nil && !errdefs.IsNotFound(err) {
+			if err != nil && !errdefs.IsNotFound(err) && !errdefs.IsConflict(err) {
 				w.Event(progress.ErrorMessageEvent(eventName, "Error while Removing"))
 				return err
 			}