6 ms·
> A term can be both established and nonsensical Not at all. The establishment of a term, and giving it a definition that's widely agreed upon, by definition
by kelnos 2y ago
> A term can be both established and nonsensical
Not at all. The establishment of a term, and giving it a definition that's widely agreed upon, by definition (heh) makes it not nonsensical.
> "Distro" means "distribution", so "something that is distributed"
No. In the Linux world a distribution means something much more restricted than that. It's a full system that can be installed, complete with a package manager, init system, etc.
"Distroless" simply means it's a minimal set of software and libraries such that it can run a particular binary that you copy into it, but it doesn't act like a distribution. You can't install libraries and programs into the container using a package manager, for example, like you'd be able to if your container held a stock Debian install.
> It seems that "distroless" images are being built from a distribution, and then by removing some of the contents. So you must have a distro first, otherwise you can't have "distroless". That doesn't add up semantically.
I don't see where you're getting that conclusion from. If you take a distro, install it into a container, and then strip away everything that makes it a distro, then it is indeed distroless. How you got there is irrelevant.
You could even build a distroless container without installing the distro into the container first. You could install the distro into a chroot (or into another container) and then selectively copy things out into the target container. Or if you were a masochist, I suppose you could even download source tarballs of everything you wanted in your distroless container, and manually build them on a host system and copy them into the container.
Again, how you get to the final state is irrelevant. The idea is that the final state is runnable, but does not contain all the bits you'd expect to see in an installed distro.
- jrm4 2y agoI've seen nothing to indicate that your definition of "distro" is THAT restrictive. I'm confident saying a linux distro is anything with a linux kernel that you can slap on bare metal or a VM system and get something up and running. You're merely describing a minimalist/specialized distro, a not particularly new or unique concept.
- rpdillon 2y agoI mean in the beginning you'd be downloading the kernel code yourself and building a distribution with core utils. Distros came along and did all that work for you: they were a system that packaged up the kernel with a lot of useful utilities as well as an packaging and update mechanism. Of course you can find a way to be upset with the term if you want to, but I think it's in this sense that these container images are distroless.