mirror of https://github.com/docker/compose.git
Merge pull request #6654 from jkldgoefgkljefogeg/master
fix #6579 cli ps --all
This commit is contained in:
commit
b612361541
|
@ -721,7 +721,8 @@ class TopLevelCommand(object):
|
|||
|
||||
if options['--all']:
|
||||
containers = sorted(self.project.containers(service_names=options['SERVICE'],
|
||||
one_off=OneOffFilter.include, stopped=True))
|
||||
one_off=OneOffFilter.include, stopped=True),
|
||||
key=attrgetter('name'))
|
||||
else:
|
||||
containers = sorted(
|
||||
self.project.containers(service_names=options['SERVICE'], stopped=True) +
|
||||
|
|
Loading…
Reference in New Issue