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?
✗ Incorrect
The correct command is
docker service update --image newimage:tag servicename to update the service image.What does the
--update-delay option do in a rolling update?✗ Incorrect
--update-delay sets the wait time between updating batches of containers.Why is rolling update important for production services?
✗ Incorrect
Rolling updates help keep services running without downtime by updating containers gradually.
If a rolling update fails, what can Docker do automatically?
✗ Incorrect
Docker can rollback the update to the previous stable version to keep the service stable.
Which option controls how many containers update at the same time?
✗ Incorrect
--update-parallelism sets how many containers update simultaneously.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.