Docker : Display Container resource usage2026/05/08 |
|
You can check percentage of CPU, memory, network I/O for Containers. |
|
| [1] | Check the resource usage of each container. |
|
# display usage statistics with streaming root@dlp:~# docker stats CONTAINER ID NAME CPU % MEM USAGE / LIMIT MEM % NET I/O BLOCK I/O PIDS c30e6db0e10b root-db-1 0.01% 91.15MiB / 15.11GiB 0.59% 850B / 126B 5.68MB / 57.3kB 10 ed02f091451f root-web-1 0.00% 6.156MiB / 15.11GiB 0.04% 1kB / 126B 0B / 0B 56 # display without streaming root@dlp:~# docker stats --no-stream CONTAINER ID NAME CPU % MEM USAGE / LIMIT MEM % NET I/O BLOCK I/O PIDS c30e6db0e10b root-db-1 0.01% 91.15MiB / 15.11GiB 0.59% 920B / 126B 5.68MB / 65.5kB 10 ed02f091451f root-web-1 0.00% 6.156MiB / 15.11GiB 0.04% 1.07kB / 126B 0B / 16.4kB 56 # display for a specific container root@dlp:~# docker stats c30e6db0e10b --no-stream CONTAINER ID NAME CPU % MEM USAGE / LIMIT MEM % NET I/O BLOCK I/O PIDS c30e6db0e10b root-db-1 0.01% 91.15MiB / 15.11GiB 0.59% 920B / 126B 5.68MB / 65.5kB 10 # display with specific format root@dlp:~# docker stats --no-stream --format "table {{.ID}} {{.CPUPerc}} {{.MemPerc}}" CONTAINER ID CPU % MEM % c30e6db0e10b 0.01% 0.59% ed02f091451f 0.00% 0.04% |
| Sponsored Link |
|
|