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

Why should frequently changing layers come last and shared base layers stay stable?

Explanation

If all services share one base image, a deploy downloads just the app layer. Rebuilding the base for every release forces full pulls everywhere.

Further reading

Problem with a question

Docker and CI/CD · Senior · question 66

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