Bird
0
0

If a rolling update fails on some containers, what does Docker Swarm do by default?

medium📝 Command Output Q5 of 15
Docker - Swarm
If a rolling update fails on some containers, what does Docker Swarm do by default?
AStops the service completely
BContinues updating remaining containers ignoring errors
CRolls back to the previous version automatically
DDeletes the service and all containers
Step-by-Step Solution
Solution:
  1. Step 1: Understand Docker Swarm update failure behavior

    By default, Docker Swarm rolls back the service to the previous stable version if update fails.
  2. Step 2: Compare options

    Only Rolls back to the previous version automatically describes this rollback behavior; others describe incorrect or destructive actions.
  3. Final Answer:

    Rolls back to the previous version automatically -> Option C
  4. Quick Check:

    Update failure triggers rollback = Rolls back to the previous version automatically [OK]
Quick Trick: Docker auto-rollbacks on update failure unless disabled [OK]
Common Mistakes:
  • Thinking service stops completely on failure
  • Assuming update continues ignoring errors
  • Believing service is deleted on failure

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Docker Quizzes