Re:Build Your Own Docker with Linux Namespaces, Cgroups, and...
by tracker1 on Tuesday June 27, 2023 @02:04PM
(#36496496)
I would suggest Alpine (5mb) or Debian Slim (<80mb) for base images. There's no need to add the overhead of RHEL inside containers, it really doesn't give you anything.
Re:Build Your Own Docker with Linux Namespaces, Cgroups, and...
by kbenson on Tuesday June 27, 2023 @03:21PM
(#36497459)
It gives consistency for those that use RHEL and derivatives outside containers, allows easy use of enterprise software aimed at that distro, and it allows tying into registries such as quay.io that will give you notes about when and what aspects of it are out of date (package wise).
I'm not saying to necessarily use it, but I wanted to pick something that was on the heavier end of the spectrum to forestall complaints about how for some people's workloads it's not realistic to run a 5MB alpine image given their work environment and needs.
A RHEL 9 universal base image, which you can add just the packages you need to, is 217MB.
And if you have hundreds of images on your system, maybe remove some you aren't using. I doubt you're using them all, and if you are using them all, they likely aren't using all the space you think they are because they're probably sharing layers.