Re:Optimizing Docker image size and why it matters
by theptip on Thursday January 06, 2022 @03:27PM
(#29829564)
I believe “Ephemeral containers” are intended to resolve this issue; you can attach a “debug container” to your pod with a shell and other tools.
https://kubernetes.io/docs/concepts/workloads/pods/ephemeral...
Still beta, I haven’t tried it yet myself. Looks interesting though.
Either way as long as all your containers share the same base layer it doesn't really matter since they will be deduplicate.