this post was submitted on 24 Feb 2025
29 points (100.0% liked)
Linux
50549 readers
619 users here now
From Wikipedia, the free encyclopedia
Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).
Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word "Linux" in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.
Rules
- Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.
- No misinformation
- No NSFW content
- No hate speech, bigotry, etc
Related Communities
Community icon by Alpár-Etele Méder, licensed under CC BY 3.0
founded 5 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
I always wonder how Docker works on macOS with a more UNIX-style kernel than Linux when even FreeBSD gave up on the effort.
I understand macOS is way closer to Linux than Windows (despite its differences) but is it really that hard to do Docker/OCI out of Linux?
It doesn't. Macos also uses a virtual machine for docker.
Yes. The runtimes containers use are dependent on cgroups, seccomp, namespaces, and a few other linux kernel specific features.
You could implement a wine like project to run the linux binaries that containers contain, and then run some sandboxing to make it be a proper container, but no virtual machines or virtual machine container runtimes* are easier.
Linuxulator, a freebsd project does the above.
https://people.freebsd.org/~dch/posts/2024-12-04-freebsd-containers/
*these are much lighter than a normal vm, I'll need to check if this is what macos does. I know for a fact docker on windows uses a full Linux vm though.
Actually that’s a good point that I’ve completely forgotten. Docker uses the modern macOS APIs for virtualization these days, and uses Rosetta2 for
amd64
containers.Edit: Damn you’ve got me excited about FreeBSD again. I’m a much bigger fan of FreeBSD on bare metal but do love Docker and related Linux goodness!
FreeBSD is supporting OCI containers natively. If the app in your container can run on Linuxulator, it will run on FreeBSD (natively on the FreeBSD kernel).
They want it to be able to host Kubernetes on FreeBSD.