Complete the command to update a service with a rolling update in Docker Swarm.
docker service update --[1] my_serviceThe --update-parallelism flag controls how many tasks are updated simultaneously during a rolling update.
Complete the command to set the delay between updating each task during a rolling update.
docker service update --update-[1] 10s my_service
The --update-delay flag sets the wait time between updating each task in the rolling update.
Fix the error in the command to rollback a service to the previous version.
docker service [1] my_serviceThe rollback command reverts the service to the previous version in Docker Swarm.
Fill both blanks to create a command that updates a service with a max failure ratio.
docker service update --update-max-failure-[1] [2] my_service
The --update-max-failure-ratio flag sets the maximum allowed failure ratio during update. Here, 0.2 means 20% failures allowed before stopping.
Fill all three blanks to update a service with parallelism 2, delay 5s, and monitor 15s.
docker service update --update-parallelism [1] --update-delay [2] --update-[3] 15s my_service
This command sets the update parallelism to 2 tasks at once, waits 5 seconds between updates, and monitors for 15 seconds after each update.