Back to FreeBSD: Part 1

(hypha.pub)

67 points | by enz 5 hours ago

6 comments

  • matheus-rr 53 minutes ago
    The jails vs containers framing is interesting but I think it misses why Docker actually won. It wasn't the isolation tech. It was the ecosystem: Dockerfiles as executable documentation, a public registry, and compose for local dev. You could pull an image and have something running in 30 seconds without understanding anything about cgroups or namespaces.

    FreeBSD jails were technically solid years before Docker existed, but the onboarding story was rough. You needed to understand the FreeBSD base system first. Docker let you skip all of that.

    That said, I've been seeing more people question the container stack complexity recently. Especially for smaller deployments where a jail or even a plain VM with good config management would be simpler and more debuggable. The pendulum might be swinging back a bit for certain use cases.

    • wolvoleo 4 minutes ago
      Jails were never going to 'win' because they're only on an OS with 0.1% marketshare.

      But it's not a competition. FreeBSD does its thing and Linux does another. That's why I use FreeBSD.

    • sthuck 51 minutes ago
      I don't think article misses it, it's exactly the point it makes
    • torstenvl 35 minutes ago
      > Jails solve the isolation problem beautifully, but they don't have a native answer to shipping. That gap is real, and it's one of the main reasons the ecosystem around jails feels underdeveloped compared to Docker's world.

      The link literally uses the term ecosystem. Several times actually.

    • steve1977 17 minutes ago
      Maybe FreeBSD doesn't want a jails "ecosystem"?
    • steve1977 18 minutes ago
      > You could pull an image and have something running in 30 seconds without understanding anything

      Fixed that for you ;)

  • palata 1 hour ago
    Nice article!

    > To solve the distribution and isolation problem, Linux engineers built a set of kernel primitives (namespaces, cgroups, seccomp) and then, in a very Linux fashion, built an entire ecosystem of abstractions on top to “simplify” things: [...] Somehow we ended up with an overengineered mess of leaky abstractions

    Not sure I like the value judgement here. I think it's more of a consequence of Linux' success. I am convinced that if it was reversed (Linux was niche and *BSD the norm), then a ton of abstractions would come, and the average user would "use an overengineered mess" because they don't know better (or don't care or don't have a need to care).

    Not that I like it when people ship their binary in a 6G docker image. But I don't think it's fair to put that on "those Linux engineers".

    • realusername 1 hour ago
      I don't think it's necessarily true, compare the BSD utils to the GNU utils and the style difference is very visible.

      On the other hand, I don't think the comparison between jails and docker is fair. What made Docker popular is the reusability of the containers, certainty not the sandboxing which in the early days was very leaky.

      • NooneAtAll3 42 minutes ago
        what do you mean by reusability?
        • maxloh 25 minutes ago
          For example, you can build a Python image, and reuse it on every Python apps you have.
          • fragmede 17 minutes ago
            And for the whole world, too. I don't need to build my own local stripped down version of Alpine Linux with python, somebody's already dike that for me.
  • flipped 4 minutes ago
    Is there any technical writeup which explains how the isolation exactly works, on containers and VMs? I have always heard the high level arguments of weak isolation, same kernel, etc but never the implementation details.
  • lifeisstillgood 1 hour ago
    I ran a whole company on top of FreeBSD back in the day (2005 ish). It was great, and ran all my personal pcs the same way (hell, refusing to install windows to try out this bitcoin idea is even now a good idea).

    But somehow Linux still took over my personal and professional life.

    Going back seems nice but there need to be a compelling reason -docker is fine, the costs don’t add up any more. I do t have a real logical argument beyond that.

    • dijit 0 minutes ago
      Yeah, I have a similar situation; FreeBSD is a great operating system, but the sheer amount of investment in Linux makes all the warts semi-tolerable.

      I'm sure some people have a sunk-cost feeling with Linux and will get defensive of this, but ironically this was exactly the argument I had heard 20 years ago - and I was defensive about it myself then.. This has only become more true though.

      It's really hard to argue against Linux when even architecturally poor decisions are papered over by sheer force of will and investment; so in a day-to-day context Linux is often the happy path even though the UX of FreeBSD is more consistent over time.

    • flipped 0 minutes ago
      Never understood why satoshi was a prime windows user.
  • nesarkvechnep 2 hours ago
    I’m always going to like articles introducing people to FreeBSD.
  • NooneAtAll3 43 minutes ago
    "failed to verify your browser"