Bird
0
0

Given this command:

medium📝 Command Output Q5 of 15
Docker - Production Patterns

Given this command:

docker service update --image myapp:v3 --update-parallelism 3 --update-delay 5s myservice

What happens if the service has 9 containers?

A3 containers update every 5 seconds until all 9 are updated
BAll 9 containers update simultaneously
COnly 3 containers update and the rest stay old
DThe update fails due to invalid parallelism
Step-by-Step Solution
Solution:
  1. Step 1: Understand update-parallelism and delay

    3 containers update at once, then wait 5 seconds before next batch.
  2. Step 2: Calculate update batches

    With 9 containers, updates happen in 3 batches of 3 containers each, with 5 seconds delay between batches.
  3. Final Answer:

    3 containers update every 5 seconds until all 9 are updated -> Option A
  4. Quick Check:

    Parallelism 3 + delay 5s = batch updates [OK]
Quick Trick: Parallelism sets batch size, delay sets wait time [OK]
Common Mistakes:
  • Thinking all update at once
  • Assuming partial update only
  • Believing parallelism value is invalid

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Docker Quizzes