7 ms·
Yes, but in a sense that's the essence of why the technology got left behind. Jails were a mechanism for expert admins to play with container ideas. What the
by ajross 5y ago
Yes, but in a sense that's the essence of why the technology got left behind. Jails were a mechanism for expert admins to play with container ideas.
What the market actually wanted was Docker. And what Docker needed was Linux containers (complicated, flexible, piecewise technology) and not jails, which were higher level abstractions (but yet not high enough) with jargon and framework assumptions that didn't match Docker's needs 1:1.
- pjmlp 5y agoAnd slowly the only thing left from Docker will be the image format.
- GordonS 5y agoAnd the Registry API too, I expect, but yeah, the untimely demise of Docker as a company feels inevitable at this point.
- StreamBright 5y agoThe "market" did not want Docker. Docker as a product failed. There are many reasons why FreeBSD jails count not get out for FreeBSD land, one, very important thing is the Linux community's NIH attitude.
- shatteredgate 5y agoI don't think you can explain that as NIH. From what I have seen, Linux namespaces are a much more powerful primitive than BSD jails.
- kazen44 5y agonamespaces in what sense? network namespaces? because freebsd has VNET for a while now. which seems to do the same thing.
- shatteredgate 5y agoAnd all the other ones: https://man7.org/linux/man-pages/man7/namespaces.7.html https://man7.org/linux/man-pages/man7/namespaces.7.html BSD jails are similar but not quite the same thing.
- ori_b 5y agoI don't get it. How are people using this flexibility to get things done in practice, and what uses aren't allowed by the jail model?
- shatteredgate 5y agoYou can just compare the APIs, namespaces are like the individual components of a jail. You can use them to build something like a jail, or something different that has a different security model. This was discussed a lot in an old HN thread: https://news.ycombinator.com/item?id=13982620 https://news.ycombinator.com/item?id=13982620
- ori_b 5y agoYes, I am aware that it's got more moving parts. What are you using this flexibility for?
- shatteredgate 5y agoI'm using them for several things but the most straightforward one is probably that namespacing can be gradually added to services, you most likely see benefits from this already if you use systemd. That's one way that namespaces can be used in a different way from the docker model.
- ori_b 5y agoWhat are you adding gradually, specifically? Like, a concrete example that names a namespace you may want to use. I'm trying to figure out what problems a half sandbox solves, and a vague "I just want to enable some capabilities" doesn't help here.
- StreamBright 5y agoWell, looking at the following things sort of gives it away: - brtfs vs zfs - cgroups vs jails - SystemTap vs dtrace - Systemd vs smf I get it, many of these were due to licensing issues. So they said[1]. Anyways, there are still some things to implement for linux. pf is my favourite (software) firewall. It would be great to see it ported to Linux. 1. https://opensource.stackexchange.com/questions/2094/are-cddl-and-gpl-really-incompatible/2106 https://opensource.stackexchange.com/questions/2094/are-cddl...
- shatteredgate 5y agoIn my experience, both Linux developers and BSD developers don't seem to care too much about porting things to the other's operating system. If you want to do things the Linux way you can use Linux, and if you want to do things the BSD way you can use BSD. That's seen as easier than trying to glue two incompatible things together.
- int_19h 5y agoBSD developers can't port things from Linux in a straightforward manner due to license issues. But that doesn't apply the other way around.
- shatteredgate 5y agoI don't see why. BSD and GPL are equally compatible, it doesn't matter which way you go. I can see why they wouldn't want a GPL component to be mandatory but it can be made an optional component for Linux compatibility which seems to be the way BSD would want it anyway.
- ajross 5y agoWon't, not can't. *BSDs shipped GPL components for decades before they decided to go for purity. It's a policy decision, not a incapability or mandate.
- deleted 5y ago[deleted]
- redis_mlc 5y ago
- ajross 5y ago> The "market" did not want Docker. Docker as a product failed. Docker as a paid product failed. Docker as a company is failing. "Docker" in the sense I meant (of the software people use to launch containers), is pervasive and dominant. It won. And jails, in comparison, "lost", because jails didn't really do what Docker wanted. And what the market wanted was Docker.