Hacker News new | ask | show | jobs
by hnlmorg 19 days ago
What’s FreeBSDs story like for Docker these days?

I love FreeBSD. But I reluctantly had to migrate one of my home servers to Ubuntu Server because I needed Docker support as well as ZFS. Ubuntu Server, compared to FreeBSD, is a complete clusterfuck of an OS. And I regret the effort I spent migrating.

7 comments

There's experimental support for Podman and OCI containers on FreeBSD 14.3 and later, with some additional system configuration required [0], [1]. I've been playing with it off and on with FreeBSD 15.0 and 15.1, but I'm not using it for anything I depend on.

[0]: https://docs.freebsd.org/en/books/handbook/containers/

[1]: https://podman.io/docs/installation#installing-on-freebsd

Nice. I’ll have a read of that later. Thank you
What a shame.
I used to use Ubuntu a lot about 7 years ago. I saw the writing on the wall. Once they started forcing snap down people’s throats, especially. I’ve been on Debian ever since and have been very happy. I also have run many other OS’s and I feel that Debian is still a good blend of polished and still friendly to the hacker.
Yeah Debian is nice. But at the time of switching, only Ubuntu offered ZFS precompiled in their official repos.

I did, for a period, run some other distro with DKMS but that was a massive pain to keep up-to-date due to ZoL’s piss poor documentation and messy build tools.

This was quite a few years ago though. Long before even FreeBSD synced with ZoL for OpenZFS. So the problems I encountered have likely matured tenfold since.

But if I’m going to the hassle of installing a new OS then I might as well install FreeBSD again because I just prefer it to Linux (nothing against Linux in general, my laptops and PCs all run Arch and I’ve made a career from supporting a variety Linux platforms)

I have FreeBSD directly on metal, with just ZFS datastore and vm-bhyve [1] directly on it. All my services are in separate bhyve VMs. Most of those are also FreeBSD-based but some that require docker are Linux-based (my radio [2] is azuracast [3] in docker inside Ubuntu as a bhyve vm on FreeBSD). This way I can setup zrepl [4] on host to periodically snapshot whole VMs and send them to another box or to external USB disk, and I'm backed up.

[1] https://github.com/freebsd/vm-bhyve

[2] https://www.dno.rs/radio

[3] https://github.com/AzuraCast/AzuraCast

[4] https://github.com/zrepl/zrepl

Nice. I’ll have a read of those links. Thank you
If you need Linux compatibility layer AND ZFS without a hypervisor, unfortunately it's hard to get close to a Linux host. I've never used FreeBSD or SmartOS in production (I did use Solaris and zones in the past) and I know ZFS support is first class in those. But I've been using both zfs-dkms and kmod-zfs in RockyLinux and the experience has been pretty pleasant (ended up chosing kmod because we only follow OS releases anyway and install time is better there). I'm sure the story is similar for OSes like AlmaLinux (which also get upgrades sooner than Rocky, and I would prefer to use it instead of Rocky, but it is a requirement for us).

On my desktop I also use ZFS with kmod on cachy and updates have been seamless so far.

was that like 5 years ago or more ? Debian "just have packages" for a while
Now I think about it, it might have been 5 jobs ago!! So possibly 10 years.

Wow it’s scary how quickly time goes by!

There is also this which was not mentioned by other commenters.

https://daemonless.io/

Looks interesting. Thanks for sharing.
Use Debian. Ubuntu is a clusterfuck but it's not all related to the software they use
Debian is in a downward spiral after Buster.
Why’s that?
We run Linux in a bhyve VM for podman support but backed by FreeBSD ZFS. Migrate back!
> What’s FreeBSDs story like for Docker these days?

My current setup for Docker (Podman really in my case):

    Proxmox -> Linux VMs -> Podman containers inside Linux VMs
My plan:

    FreeBSD's bhyve hypervisor -> Linux VMs -> Podman containers inside Linux VMs
So basically just ditching Proxmox for FreeBSD/bhyve. Then at long last I'll be, again, systemd-free.
I did consider the bhyve approach myself, before I made the switch. But it was still pretty experimental at the time (iirc) and wanted something reliable otherwise I’d have a wife and two kids moaning at me that their stuff isn’t working haha!

But maybe you’re right that it’s worth reconsidering now.

Out of curiosity, what required docker that wasn't better suited by jails? I know such things exist (e.g. software projects that are only distributed as dockerfiles), but not sure how common they are.
Laziness. I ran Jails for years and was largely happy with it. But I didn’t want to handle the jails upgrades manually. I just wanted to run “docker pull”.