Challenge - 5 Problems
Rolling Update Master
Get all challenges correct to earn this badge!
Test your skills under time pressure!
💻 Command Output
intermediate2:00remaining
Output of a rolling update command in Docker Swarm
What is the output of the following command when updating a service with rolling update strategy in Docker Swarm?
Docker
docker service update --image nginx:1.19 my_web_service
Attempts:
2 left
💡 Hint
Think about how Docker Swarm reports progress during rolling updates.
✗ Incorrect
The docker service update command shows the progress of the rolling update, including how many tasks have been updated and how many are running.
🧠 Conceptual
intermediate2:00remaining
Understanding rolling update behavior in Docker Swarm
Which statement correctly describes the rolling update behavior in Docker Swarm?
Attempts:
2 left
💡 Hint
Think about how rolling updates minimize downtime.
✗ Incorrect
Rolling updates in Docker Swarm update tasks one at a time or in batches, keeping the service available during the update.
❓ Configuration
advanced2:00remaining
Configuring rolling update parameters in Docker service
Which Docker service update command correctly sets the rolling update to update 2 tasks at a time with a 10-second delay between updates?
Attempts:
2 left
💡 Hint
Check the exact option names and units for delay.
✗ Incorrect
The correct flags are --update-parallelism and --update-delay with the delay specified in seconds with 's'.
❓ Troubleshoot
advanced2:00remaining
Troubleshooting a failed rolling update in Docker Swarm
After running a rolling update, some tasks fail to start and the service is stuck updating. What is the most likely cause?
Attempts:
2 left
💡 Hint
Think about what would prevent new tasks from starting.
✗ Incorrect
If the new image tag is invalid or missing, tasks cannot start with the updated image, causing the update to fail.
🔀 Workflow
expert3:00remaining
Order the steps for performing a safe rolling update in Docker Swarm
Arrange the following steps in the correct order to perform a safe rolling update of a Docker Swarm service.
Attempts:
2 left
💡 Hint
Think about preparation, execution, monitoring, and finalizing steps.
✗ Incorrect
First, ensure the new image is ready. Then update the service. Monitor the update and finally rollback if needed or confirm success.