Prechádzať zdrojové kódy

Merge pull request #21947 from boynux/fix-filter-exited

exited=0 in filter shouldn't show "Created" ones
Vincent Demeester 9 rokov pred
rodič
commit
4c88c67058
1 zmenil súbory, kde vykonal 1 pridanie a 1 odobranie
  1. 1 1
      daemon/list.go

+ 1 - 1
daemon/list.go

@@ -276,7 +276,7 @@ func includeContainerInList(container *container.Container, ctx *listContext) it
 	if len(ctx.exitAllowed) > 0 {
 		shouldSkip := true
 		for _, code := range ctx.exitAllowed {
-			if code == container.ExitCode && !container.Running {
+			if code == container.ExitCode && !container.Running && !container.StartedAt.IsZero() {
 				shouldSkip = false
 				break
 			}