Merge pull request #56 from tortxof/master

Add method to list containers by name in the docker stats section.
This commit is contained in:
Will Sargent 2015-12-24 11:18:54 -08:00
commit 7373a0d9ec

View file

@ -482,16 +482,20 @@ gzip -dc image.tgz | docker import - flat-image-name
### Monitor system resource utilization for running containers ### Monitor system resource utilization for running containers
To check the CPU, memory and network i/o usage, you can use: To check the CPU, memory, and network i/o usage of a single container, you can use:
``` ```
docker stats <container> docker stats <container>
``` ```
for a single container or For all containers listed by id:
``` ```
docker stats $(docker ps -q) docker stats $(docker ps -q)
``` ```
to monitor all containers on the docker host. For all containers listed by name:
```
docker stats $(docker ps --format '{{.Names}}')
```