'Docker API collect stats for all running containers

Using curl --unix-socket /var/run/docker.sock "http://localhost/v1.41/containers/<containerId>/stats" I can collect stats of a single container.

Is it possible to collect stats of all running containers with a single HTTP call?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source