2015-01-19 19:10:26 -05:00
|
|
|
% DOCKER(1) Docker User Manuals
|
|
|
|
% Docker Community
|
|
|
|
% JUNE 2014
|
|
|
|
# NAME
|
2015-01-21 14:44:23 -05:00
|
|
|
docker-stats - Display a live stream of one or more containers' resource usage statistics
|
2015-01-19 19:10:26 -05:00
|
|
|
|
|
|
|
# SYNOPSIS
|
2015-01-20 21:13:47 -05:00
|
|
|
**docker stats**
|
2015-12-23 09:37:06 -05:00
|
|
|
[**-a**|**--all**]
|
2015-01-19 19:10:26 -05:00
|
|
|
[**--help**]
|
2015-12-23 09:37:06 -05:00
|
|
|
[**--no-stream**]
|
2016-09-25 10:07:15 -04:00
|
|
|
[**--format[="*TEMPLATE*"]**]
|
2015-10-03 08:53:25 -04:00
|
|
|
[CONTAINER...]
|
2015-01-19 19:10:26 -05:00
|
|
|
|
|
|
|
# DESCRIPTION
|
|
|
|
|
2015-01-21 14:44:23 -05:00
|
|
|
Display a live stream of one or more containers' resource usage statistics
|
2015-01-19 19:10:26 -05:00
|
|
|
|
|
|
|
# OPTIONS
|
2015-10-03 08:53:25 -04:00
|
|
|
**-a**, **--all**=*true*|*false*
|
|
|
|
Show all containers. Only running containers are shown by default. The default is *false*.
|
|
|
|
|
2015-01-19 19:10:26 -05:00
|
|
|
**--help**
|
|
|
|
Print usage statement
|
|
|
|
|
2015-11-09 20:33:55 -05:00
|
|
|
**--no-stream**=*true*|*false*
|
|
|
|
Disable streaming stats and only pull the first result, default setting is false.
|
2015-02-13 11:45:04 -05:00
|
|
|
|
2016-09-25 10:07:15 -04:00
|
|
|
**--format**="*TEMPLATE*"
|
|
|
|
Pretty-print containers statistics using a Go template.
|
|
|
|
Valid placeholders:
|
|
|
|
.Container - Container name or ID.
|
|
|
|
.CPUPerc - CPU percentage.
|
|
|
|
.MemUsage - Memory usage.
|
|
|
|
.NetIO - Network IO.
|
|
|
|
.BlockIO - Block IO.
|
|
|
|
.MemPerc - Memory percentage (Not available on Windows).
|
|
|
|
.PIDs - Number of PIDs (Not available on Windows).
|
|
|
|
|
2015-01-19 19:10:26 -05:00
|
|
|
# EXAMPLES
|
|
|
|
|
2015-10-03 08:53:25 -04:00
|
|
|
Running `docker stats` on all running containers
|
2015-01-19 19:10:26 -05:00
|
|
|
|
2015-10-03 08:53:25 -04:00
|
|
|
$ docker stats
|
2015-07-26 04:14:00 -04:00
|
|
|
CONTAINER CPU % MEM USAGE / LIMIT MEM % NET I/O BLOCK I/O
|
2016-04-05 15:30:35 -04:00
|
|
|
1285939c1fd3 0.07% 796 KiB / 64 MiB 1.21% 788 B / 648 B 3.568 MB / 512 KB
|
|
|
|
9c76f7834ae2 0.07% 2.746 MiB / 64 MiB 4.29% 1.266 KB / 648 B 12.4 MB / 0 B
|
|
|
|
d1ea048f04e4 0.03% 4.583 MiB / 64 MiB 6.30% 2.854 KB / 648 B 27.7 MB / 0 B
|
2015-10-03 08:53:25 -04:00
|
|
|
|
|
|
|
Running `docker stats` on multiple containers by name and id.
|
|
|
|
|
|
|
|
$ docker stats fervent_panini 5acfcb1b4fd1
|
|
|
|
CONTAINER CPU % MEM USAGE/LIMIT MEM % NET I/O
|
2016-04-05 15:30:35 -04:00
|
|
|
5acfcb1b4fd1 0.00% 115.2 MiB/1.045 GiB 11.03% 1.422 kB/648 B
|
|
|
|
fervent_panini 0.02% 11.08 MiB/1.045 GiB 1.06% 648 B/648 B
|