Monitor resources consuming on docker containers

The simply way to monitor resources on container is using the command Docker stats.

docker stats

This command will display a live stream resource usage statistics of all containers:

  • CPU % usage
  • Memory usage, limit
  • Network i/o
  • Disk i/o
CONTAINER ID        NAME                CPU %               MEM USAGE / LIMIT     MEM %               NET I/O             BLOCK I/O           PIDS
6276d4fa1715        authorizer     0.08%               139.6MiB / 31.41GiB   0.43%               1.41GB / 375MB      3.57MB / 0B         29
7c6caae3fb58        accounts         0.04%               157.8MiB / 31.41GiB   0.49%               3.67MB / 10.2MB     688kB / 0B          27

You also can monitor a specific container ids by add its IDs like this:

admin@ubuntu:~$ docker stats 6276d4fa1715 7c6caae3fb58

Leave a comment