mirror of https://github.com/docker/compose.git
don't exit with err=1 when no container listed
Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
This commit is contained in:
parent
19682173d7
commit
e1267cddfd
|
@ -124,10 +124,6 @@ SERVICES:
|
||||||
return fmt.Errorf("no such service: %s", s)
|
return fmt.Errorf("no such service: %s", s)
|
||||||
}
|
}
|
||||||
|
|
||||||
if len(containers) == 0 {
|
|
||||||
return api.ErrNotFound
|
|
||||||
}
|
|
||||||
|
|
||||||
if opts.Status != "" {
|
if opts.Status != "" {
|
||||||
containers = filterByStatus(containers, opts.Status)
|
containers = filterByStatus(containers, opts.Status)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue