- Say I build my docker images layer by layer.
A < B < C < D, etc.
- Now if I update my docker image
A, would the rest of docker images
B, C, Dsee the changes as well, provided that the changes are not touched by them when building them? E.g., adding
/etc/apt/sources.list.d/somethingnewthat was never there before.
- If I had built another set of docker images layer by layer.
A < X < Y < Z, then the above changes will be reflected in
X, Y, Zas well, right?
- Now if however, the future changes to
A, is made to the same file that will be changed when building
B, C, D, then what would happen? For e.g., let’s make it simple that docker images
B, C, Deach only add pkgB, pkgC, and pkgD in its layer. If I add a pkgA to
B, C, Dare build, what would happen? — I guess there should be one single version of truth as what packages are in, for a single system, so what would it be for this case?
- What if I’m only upgrading the packages in
A? This should be OK right? Would the rest of docker images see the changes as well?