Complete the command to show real-time resource usage stats of all containers.
docker stats [1]The --all option shows stats for all containers, including non-running ones.
Complete the command to show a single snapshot of container stats without continuous updates.
docker stats [1]The --no-stream option shows only one snapshot of stats and then exits.
Fix the error in the command to display CPU and memory usage in a custom format.
docker stats --format "{{.Name}}: CPU [1], MEM {{.MemUsage}}"
The placeholder {{.CPUPerc}} correctly shows CPU percentage usage.
Fill both blanks to create a command that shows stats only for containers named 'webapp' and 'db'.
docker stats [1] [2]
Specifying container names after docker stats limits stats to those containers.
Fill all three blanks to format output showing container name, CPU %, and memory usage.
docker stats --format "[1]: CPU [2], MEM [3]"
{{.Name}} shows container name, {{.CPUPerc}} CPU usage, and {{.MemUsage}} memory usage.