

Running docker stats on multiple containers by name and id against a Linux daemon. The number of processes or threads the container has created The amount of data the container has written to and read from block devices on the host The amount of data the container has received and sent over its network interface The total memory the container is using, and the total amount of memory it is allowed to use The percentage of the host’s CPU and memory the container is using If you don’t specify a format string using -format, the Refer to for more information about formatting output with templatesĭisable streaming stats and only pull the first result ‘TEMPLATE’: Print output using the given Go template. ‘table TEMPLATE’: Print output in table format using the given Go template

‘table’: Print output in table format with column headers (default)

Show all containers (default shows just running) Or top) may indicate that something in the container is creating many threads.įor example uses of this command, refer to the examples section below. PIDS column combined with a small number of processes (as reported by ps Terms are “lightweight process” or “kernel task”, etc. Threads is the term used by Linux kernel. The PIDS column contains the number of processes and kernel threads createdīy that container. On cgroup v2 hosts, the cache usage is defined as the value of On Docker 19.03 and older, the cache usage was defined as the value of cacheįield. Total_inactive_file field in the memory.stat file on cgroup v1 hosts. The cache usage is defined as the value of Provides the total memory usage and the amount from the cache so that clientsĬan use the data as needed. The API does not perform such a calculation but rather On Linux, the Docker CLI reports memory usage by subtracting cache usage from

If you need more detailed information about a container’s resource usage, use You can specify a stopped container but stopped Limit data to one or more specific containers, specify a list of container names The docker stats command returns a live data stream for running containers. Refer to the options section for an overview of available OPTIONS for this command.
