mirror of
https://github.com/wsargent/docker-cheat-sheet.git
synced 2025-09-22 05:40:50 +02:00
Add A simple way to monitor resource utilization
This commit is contained in:
parent
bd540d789d
commit
2f5717c494
1 changed files with 15 additions and 0 deletions
15
README.md
15
README.md
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue