Bird
0
0

You run docker events --filter event=start --filter container=web but receive no output when starting the container named web. What is the likely cause?

medium📝 Troubleshoot Q6 of 15
Docker - Logging and Monitoring
You run docker events --filter event=start --filter container=web but receive no output when starting the container named web. What is the likely cause?
AThe docker daemon is not running
BThe event filter 'start' is invalid
CThe container name is incorrect or does not exactly match 'web'
DThe command requires sudo privileges
Step-by-Step Solution
Solution:
  1. Step 1: Verify container name filter

    If the container name filter does not exactly match the container's name, no events will be shown.
  2. Step 2: Check other options

    The docker daemon running is necessary but would cause errors if down. The 'start' event filter is valid. Sudo is not always required.
  3. Final Answer:

    The container name is incorrect or does not exactly match 'web' -> Option C
  4. Quick Check:

    No output usually means filter mismatch [OK]
Quick Trick: Ensure exact container name in filter to see events [OK]
Common Mistakes:
  • Assuming daemon is down without error
  • Thinking 'start' is invalid event
  • Believing sudo is always needed

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Docker Quizzes