mirror of https://github.com/docker/docs.git
Merge pull request #21947 from boynux/fix-filter-exited
exited=0 in filter shouldn't show "Created" ones
This commit is contained in:
commit
4c88c67058
|
@ -276,7 +276,7 @@ func includeContainerInList(container *container.Container, ctx *listContext) it
|
||||||
if len(ctx.exitAllowed) > 0 {
|
if len(ctx.exitAllowed) > 0 {
|
||||||
shouldSkip := true
|
shouldSkip := true
|
||||||
for _, code := range ctx.exitAllowed {
|
for _, code := range ctx.exitAllowed {
|
||||||
if code == container.ExitCode && !container.Running {
|
if code == container.ExitCode && !container.Running && !container.StartedAt.IsZero() {
|
||||||
shouldSkip = false
|
shouldSkip = false
|
||||||
break
|
break
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue