4 ms·
But if you do that you're giving up all public images. It makes sense in a large organization but there are plenty of other use cases for Docker.
by wmf 7y ago
But if you do that you're giving up all public images. It makes sense in a large organization but there are plenty of other use cases for Docker.
- cpitman 7y agoIf you are using public images, then you are already giving up on optimizing image sizes anyways.
- wmf 7y agoBut if you are making a public image you are doing your users a favor by minimizing the size.
- paxys 7y agoYou don't have to give up public images. Here's a simple example rule - production images should all be built on Ubuntu:18.04. (With a large enough maintenance team this can change to - you must use one of these 8 images with the standard runtime stacks preconfigured). Teams still have the flexibility of using whatever they want during the build stage, and it takes away the ambiguity of them having to decide between different OS flavors, versions, slim/Alpine, building from scratch or whatever else. In 99% of cases there will be no functional difference between them anyways, and this rule reduces the overhead of having to track down and manage an infinite number of permutations from an operations side.