docker stats

The command that shows live processor, memory, network, disk and process usage for running containers, measured against their limits.

In more detail

The no-stream option prints one sample and exits, which suits scripts. Memory usage is shown next to the container's memory limit, so it is a quick way to see how close a service runs to the point where the kernel would kill it.

Example

docker stats --no-stream --format '{{.MemUsage}}' m07l01-sick

Related terms

Taught in

References