Bird
0
0

What will be the effect of this command?

medium📝 Command Output Q4 of 15
Docker - Swarm
What will be the effect of this command?
docker service update --image myapp:v3 --update-parallelism 1 --update-delay 10s myservice
AUpdates one container at a time with 10 seconds delay between updates
BUpdates all containers simultaneously after 10 seconds delay
CUpdates containers in batches of 10 with 1 second delay
DFails because --update-delay cannot be combined with --update-parallelism
Step-by-Step Solution
Solution:
  1. Step 1: Understand --update-parallelism and --update-delay

    --update-parallelism 1 means update one container at a time; --update-delay 10s adds 10 seconds wait between updates.
  2. Step 2: Analyze command effect

    The command updates containers one by one, waiting 10 seconds between each update.
  3. Final Answer:

    Updates one container at a time with 10 seconds delay between updates -> Option A
  4. Quick Check:

    Update one at a time + delay = Updates one container at a time with 10 seconds delay between updates [OK]
Quick Trick: Use --update-delay to pause between container updates [OK]
Common Mistakes:
  • Assuming all containers update simultaneously
  • Thinking delay applies before all updates
  • Believing options conflict and cause failure

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Docker Quizzes