Bird
0
0

Given the command:

medium📝 Command Output Q13 of 15
Docker - Swarm
Given the command:
docker service update --image myapp:v2 --update-parallelism 2 myservice

What will happen during this update?
AAll containers of myservice update at once to v2
BTwo containers update at a time to v2 until all are updated
COnly two containers update and the rest stay on old version
DThe service rolls back to the previous version
Step-by-Step Solution
Solution:
  1. Step 1: Understand --update-parallelism effect

    The option --update-parallelism 2 means update 2 containers at once.
  2. Step 2: Apply to service update

    Docker updates 2 containers to image v2, then moves to next 2, until all are updated.
  3. Final Answer:

    Two containers update at a time to v2 until all are updated -> Option B
  4. Quick Check:

    --update-parallelism 2 means update 2 containers at once [OK]
Quick Trick: Parallelism number controls how many containers update simultaneously [OK]
Common Mistakes:
  • Thinking all containers update simultaneously
  • Believing only two containers update permanently
  • Confusing update with rollback

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Docker Quizzes