0
0
Dockerdevops~10 mins

Rolling updates in Docker - Interactive Code Practice

Choose your learning style9 modes available
Practice - 5 Tasks
Answer the questions below
1fill in blank
easy

Complete the command to update a service with a rolling update in Docker Swarm.

Docker
docker service update --[1] my_service
Drag options to blanks, or click blank then click option'
Apublish
Bupdate-parallelism
Creplicas
Drollback
Attempts:
3 left
💡 Hint
Common Mistakes
Using --rollback instead of --update-parallelism
Confusing --replicas with update control
2fill in blank
medium

Complete the command to set the delay between updating each task during a rolling update.

Docker
docker service update --update-[1] 10s my_service
Drag options to blanks, or click blank then click option'
Adelay
Bfailure-action
Cparallelism
Dmonitor
Attempts:
3 left
💡 Hint
Common Mistakes
Using --update-parallelism instead of delay
Confusing delay with monitor
3fill in blank
hard

Fix the error in the command to rollback a service to the previous version.

Docker
docker service [1] my_service
Drag options to blanks, or click blank then click option'
Ascale
Bupdate
Crestart
Drollback
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'update' instead of 'rollback'
Using 'restart' which only restarts containers
4fill in blank
hard

Fill both blanks to create a command that updates a service with a max failure ratio.

Docker
docker service update --update-max-failure-[1] [2] my_service
Drag options to blanks, or click blank then click option'
Aratio
B0.2
C0.5
Dtimeout
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'timeout' instead of 'ratio' for failure control
Setting failure ratio above 1
5fill in blank
hard

Fill all three blanks to update a service with parallelism 2, delay 5s, and monitor 15s.

Docker
docker service update --update-parallelism [1] --update-delay [2] --update-[3] 15s my_service
Drag options to blanks, or click blank then click option'
A2
B5s
Cmonitor
Dtimeout
Attempts:
3 left
💡 Hint
Common Mistakes
Confusing 'timeout' with 'monitor'
Using wrong time units for delay or monitor