2021-07-02 docker stats
docker stats | Docker Documentation
重い docker の process が動いている場合、どいつが重いかをこれで特定する。
$ docker stats
CONTAINER ID NAME CPU % MEM USAGE / LIMIT MEM % NET I/O BLOCK I/O PIDS
b95a83497c91 awesome_brattain 0.28% 5.629MiB / 1.952GiB 0.28% 916B / 0B 147kB / 0B 9
67b2525d8ad1 foobar 0.00% 1.727MiB / 1.952GiB 0.09% 2.48kB / 0B 4.11MB / 0B 2
e5c383697914 test-1951.1.kay7x1lh1twk9c0oig50sd5tr 0.00% 196KiB / 1.952GiB 0.01% 71.2kB / 0B 770kB / 0B 1
4bda148efbc0 random.1.vnc8on831idyr42slu578u3cr 0.00% 1.672MiB / 1.952GiB 0.08% 110kB / 0B 578kB / 0B 2
- CONTAINER ID and Name: the ID and name of the container
- CPU % and MEM % the percentage of the host’s CPU and memory the container is using
- MEM USAGE / LIMIT: the total memory the container is using, and the total amount of memory it is allowed to use
- NET I/O: The amount of data the container has sent and received over its network interface
- BLOCK I/O: The amount of data the container has read to and written from block devices on the host
- PIDs: the number of processes or threads the container has created