Bird
0
0

Which Docker command provides a live view of CPU, memory, and network usage for each container?

easy📝 Conceptual Q1 of 15
Docker - Resource Management
Which Docker command provides a live view of CPU, memory, and network usage for each container?
Adocker stats
Bdocker ps
Cdocker inspect
Ddocker logs
Step-by-Step Solution
Solution:
  1. Step 1: Understand the purpose of docker stats

    The docker stats command shows live resource usage like CPU, memory, and network for containers.
  2. Step 2: Compare with other commands

    docker ps lists containers, docker inspect shows detailed config, and docker logs shows logs, none show live resource usage.
  3. Final Answer:

    docker stats -> Option A
  4. Quick Check:

    Live resource monitoring = docker stats [OK]
Quick Trick: Use 'docker stats' for live container resource info [OK]
Common Mistakes:
  • Confusing docker ps with stats
  • Using docker logs for resource info
  • Expecting inspect to show live stats

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Docker Quizzes