Commandes Linux : docker container stats


Commande : docker container stats
Usage:	docker container stats [OPTIONS] [CONTAINER...]

Display a live stream of container(s) resource usage statistics

  -a, --all             Show all containers (default shows just running)
      --format string   Pretty-print images using a Go template
      --no-stream       Disable streaming stats and only pull the first result
      --no-trunc        Do not truncate output


Afficher la consommation des containers en cours d’exécution en temps réel :

docker container stats [container ...]

Equivaut à :
docker stats [container ...]
ex :

$ docker container stats
CONTAINER ID        NAME                CPU %               MEM USAGE / LIMIT     MEM %               NET I/O             BLOCK I/O           PIDS
fb44a4025b18        web_server          0.02%               12.15MiB / 1.957GiB   0.61%               3.08kB / 0B         12.5MB / 0B         1
88858662f6a8        pgdb                0.01%               5.789MiB / 1.957GiB   0.29%               3.3kB / 0B          11.3MB / 35.5MB     7