| > That command itself means that a docker container is no longer reproducible. It's a tradeoff between making container images reproducible, and not shipping security vulnerabilities. People tend to prefer the latter. Furthermore, you can exec your way into a container and check exactly which package version you installed. |
You can regenerate your base images every day or more often and have consistent containers created from an image. Freshly generated image can be tested in a pipeline to avoid issues and you won't hit issues like inability to scale due to misbehaving new containers.