Bird
0
0

Why does this command fail?

medium📝 Troubleshoot Q7 of 15
Docker - Swarm
Why does this command fail?
docker service update --image myapp:v2 --update-parallelism 0 myservice
AService name missing
BImage version v2 does not exist
C--update-parallelism cannot be zero; must be at least 1
DCommand syntax is correct; no failure
Step-by-Step Solution
Solution:
  1. Step 1: Check --update-parallelism value constraints

    0 is NOT valid; it must be at least 1 to specify how many containers update simultaneously.
  2. Step 2: Verify other command parts

    Image and service name are present; syntax is correct except for invalid parallelism value.
  3. Final Answer:

    --update-parallelism cannot be zero; must be at least 1 -> Option C
  4. Quick Check:

    --update-parallelism must be >=1 [OK]
Quick Trick: --update-parallelism must be 1 or more; zero is invalid [OK]
Common Mistakes:
  • Thinking --update-parallelism can be zero
  • Assuming image v2 does not exist
  • Believing service name is missing

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Docker Quizzes