Bird
0
0

You run docker stats --no-stream on a container. What will you see?

medium📝 Command Output Q13 of 15
Docker - Resource Management
You run docker stats --no-stream on a container. What will you see?
AContinuous live updates of resource usage
BA single snapshot of current resource usage
COnly CPU usage without memory info
DError because --no-stream is invalid
Step-by-Step Solution
Solution:
  1. Step 1: Understand the --no-stream option

    The --no-stream option tells docker stats to show resource usage only once, not continuously.
  2. Step 2: Identify the output behavior

    It outputs a single snapshot of CPU, memory, network, and disk I/O usage at the moment the command runs.
  3. Final Answer:

    A single snapshot of current resource usage -> Option B
  4. Quick Check:

    --no-stream = single snapshot [OK]
Quick Trick: Use --no-stream for one-time resource snapshot [OK]
Common Mistakes:
  • Expecting continuous updates with --no-stream
  • Thinking it shows only CPU usage
  • Assuming --no-stream is invalid

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Docker Quizzes