We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 02451d8 commit c92a057Copy full SHA for c92a057
plugins/docker/docker_
@@ -274,7 +274,7 @@ def get_container_stats(container, q):
274
def parallel_container_stats(client):
275
proc_list = []
276
stats = {}
277
- for container in client.all_containers:
+ for container in filter(lambda c: c.status == 'running', client.containers):
278
q = Queue()
279
p = Process(target=get_container_stats, args=(container, q))
280
proc_list.append({'proc': p, 'queue': q, 'container': container})
0 commit comments