ps only lists running containers

This commit is contained in:
Aanand Prasad 2013-12-18 15:12:45 +00:00
parent 64253a8290
commit 4cc906fcd2
1 changed files with 2 additions and 3 deletions

View File

@ -77,9 +77,8 @@ class TopLevelCommand(Command):
Usage: ps Usage: ps
""" """
for service in self.service_collection: for container in self._get_containers(all=False):
for container in service.containers: print get_container_name(container)
print get_container_name(container)
def run(self, options): def run(self, options):
""" """