mirror of
https://github.com/wsargent/docker-cheat-sheet.git
synced 2025-12-18 08:00:14 +01:00
Merge pull request #45 from suchkultur/patch-1
Add A simple way to monitor resource utilization
This commit is contained in:
commit
c04adf7392
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
|
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
|
## Tools
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue