Bird
0
0

What is wrong with this canary deployment command?

medium📝 Troubleshoot Q7 of 15
Docker - Production Patterns

What is wrong with this canary deployment command?

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

AImage version v2 is incorrect
BUpdate delay must be in minutes, not seconds
C--update-parallelism value is missing or invalid
DService name is missing
Step-by-Step Solution
Solution:
  1. Step 1: Check command syntax

    --update-parallelism requires a number, but 'myservice' is given instead.
  2. Step 2: Confirm other parts

    Image and update-delay are valid; service name is missing at end.
  3. Final Answer:

    --update-parallelism value is missing or invalid -> Option C
  4. Quick Check:

    Parallelism needs numeric value [OK]
Quick Trick: Parallelism must be a number, not a name [OK]
Common Mistakes:
  • Putting service name as parallelism value
  • Wrong delay units
  • Missing service name

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Docker Quizzes