Say I have an image that opens a shell, writes the current date to a file, sleeps 60 seconds, and loops.
If I run multiple instances of the image, multiple containers, does that mean my system is running multiple instances of the shell and my script?
I ask because I see a lot of images for light-weight services – but those light-weight services need the same/similar core/base functions. In those cases, wouldn’t it make more sense for me to create my own image with all of the light-weight services – all using the same core/base functions? Wouldn’t that be more efficient.
And yes, I know it is painful to create an image that runs multiple services – but it is possible.