hunter
hunter

Reputation: 307

Is there any way to get a snapshot of docker stats?

By default docker stats produces streaming output. Is there any way to get a single snapshot of the stats output?

Upvotes: 5

Views: 913

Answers (1)

Matt
Matt

Reputation: 74680

docker stats has the --no-stream argument

docker stats --no-stream container_name

You can get the extended usage information for each of the docker commands with docker help <command_name> and the list of all commands with docker help

Upvotes: 7

Related Questions