diff --git a/daemon/list.go b/daemon/list.go index c29eaadb42..f8b23b061d 100644 --- a/daemon/list.go +++ b/daemon/list.go @@ -312,7 +312,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 }