Docker and CI/CD · Senior · Question 67 of 75

What's the risk of running migrations in an init container of a Deployment with several replicas?

Explanation

Use a migration tool with a lock, or run migrations as a separate Job (or pipeline step) before rolling out the new version.

Further reading

Problem with a question

Docker and CI/CD · Senior · question 67

Test yourself

Take the Docker and CI/CD · Senior quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz