mirror of https://github.com/docker/compose.git
ps only lists running containers
This commit is contained in:
parent
64253a8290
commit
4cc906fcd2
|
@ -77,9 +77,8 @@ class TopLevelCommand(Command):
|
|||
|
||||
Usage: ps
|
||||
"""
|
||||
for service in self.service_collection:
|
||||
for container in service.containers:
|
||||
print get_container_name(container)
|
||||
for container in self._get_containers(all=False):
|
||||
print get_container_name(container)
|
||||
|
||||
def run(self, options):
|
||||
"""
|
||||
|
|
Loading…
Reference in New Issue