Bird
0
0

Which Docker command shows real-time resource usage of running containers?

easy📝 Syntax Q12 of 15
Docker - Logging and Monitoring
Which Docker command shows real-time resource usage of running containers?
A<code>docker ps</code>
B<code>docker stats</code>
C<code>docker images</code>
D<code>docker logs</code>
Step-by-Step Solution
Solution:
  1. Step 1: Recall Docker commands for monitoring

    docker stats shows live CPU, memory, and network usage.
  2. Step 2: Compare with other commands

    docker ps lists containers, docker images lists images, docker logs shows logs, none show live resource stats.
  3. Final Answer:

    docker stats -> Option B
  4. Quick Check:

    docker stats = live resource usage [OK]
Quick Trick: Use docker stats for live container resource info [OK]
Common Mistakes:
  • Using docker ps to check resource usage
  • Confusing docker logs with stats
  • Thinking docker images shows container info

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Docker Quizzes