Explorar o código

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

Signed-off-by: Guillaume Tardif <[email protected]>
Guillaume Tardif %!s(int64=2) %!d(string=hai) anos
pai
achega
37d15d7e6b
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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
 			}