mirror of
https://github.com/docker/docs.git
synced 2026-04-12 14:25:46 +07:00
ps only lists running containers
This commit is contained in:
@@ -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):
|
||||
"""
|
||||
|
||||
Reference in New Issue
Block a user