0
0
Dockerdevops~5 mins

Rolling updates in Docker - Cheat Sheet & Quick Revision

Choose your learning style9 modes available
Recall & Review
beginner
What is a rolling update in Docker?
A rolling update gradually replaces old containers with new ones without downtime, updating services smoothly.
Click to reveal answer
beginner
Which Docker command is used to perform a rolling update on a service?
The command docker service update is used to perform rolling updates on Docker services.
Click to reveal answer
intermediate
What does the --update-parallelism option control during a rolling update?
It controls how many containers are updated at the same time during the rolling update.
Click to reveal answer
beginner
Why are rolling updates preferred over stopping all containers and starting new ones at once?
Because rolling updates avoid downtime by updating containers gradually, keeping the service available.
Click to reveal answer
intermediate
What happens if a rolling update fails in Docker?
Docker can pause or rollback the update to keep the service stable and avoid downtime.
Click to reveal answer
Which command updates a Docker service with a new image using rolling update?
Adocker update service --image newimage:tag
Bdocker container update --image newimage:tag
Cdocker service create --image newimage:tag
Ddocker service update --image newimage:tag servicename
What does the --update-delay option do in a rolling update?
ASets the number of containers to update at once
BSets the total time for the update
CSets the time to wait between updating groups of containers
DSets the timeout for container startup
Why is rolling update important for production services?
AIt ensures zero downtime during updates
BIt deletes all containers before updating
CIt updates all containers at once
DIt requires manual restart of containers
If a rolling update fails, what can Docker do automatically?
ADelete all containers
BRollback to the previous stable version
CIgnore the failure and continue
DStop the Docker daemon
Which option controls how many containers update at the same time?
A--update-parallelism
B--update-delay
C--replicas
D--restart-condition
Explain what a rolling update is and why it is useful in Docker services.
Think about how to update a running service without stopping it all at once.
You got /4 concepts.
    Describe the key Docker service update options that control rolling updates and their effects.
    Focus on options that manage how many containers update and timing between updates.
    You got /4 concepts.