We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 02451d8 commit e7eb0c0Copy full SHA for e7eb0c0
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 [ c for c in client.all_containers if c.status == 'running' ]:
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