Add A simple way to monitor resource utilization

This commit is contained in:
Stefan Antoni 2015-07-09 17:56:55 +02:00
parent bd540d789d
commit 2f5717c494

View file

@ -452,6 +452,21 @@ ID=$(docker run -d image-name /bin/bash)
gzip -dc image.tgz | docker import - flat-image-name
```
### Monitor system resource utilization for running containers
To check the CPU, memory and network i/o usage, you can use:
```
docker stats <container>
```
for a single container or
```
docker stats $(docker ps -q)
```
to monitor all containers on the docker host.
## Tools