3 ms·
I’d like a microkernel that can run Linux containers, and its own containers. That gives you the sort of platform on which you could introduce a new ecosystem
by hinkley 2y ago
I’d like a microkernel that can run Linux containers, and its own containers.
That gives you the sort of platform on which you could introduce a new ecosystem by parts.
- pphysch 2y agoLike Talos Linux? Don't you need the full Linux kernel to run arbitrary Linux containers?
- zrail 2y agoSounds more like Xen if Xen could boot containers instead of VMs.
- hinkley 2y agoBrian Cantrill talked about how they got Docker running on Joyent. They had to make shims for many system calls and a little more fiddly code for a handful more. No idea how much skill that takes, but it’s been done once.
- 0xbadcafebee 2y agoIt's the same thing as making WINE: you implement the ABI in userspace. It's a pain in the butt and it suffers from compatibility and performance issues. Programs run with WINE often run into problems not found on their native Windows environment. It's better to have a standard that each operating system implements so that apps don't need a weird portability layer in-between. Sadly, Linux doesn't give a shit about other systems, so any effort to standardize containers will happen outside Linux, and Linux probably won't pick up its changes because they already have Linux containers. So a WINE like thing would be the most workable option. The current state of affairs is actually a much better solution. Just make all containers OS-specific, and ship the OS kernel and dependencies along with a shim, and run them with QEMU. Apps run way more reliably this way with no porting required. The devs do less work, the users do less work, there's less bugs, and you can run any app in any OS.
- 0cf8612b2e1e 2y agoCan seL4 or Redox run docker yet?
- 0xbadcafebee 2y agoOnly Linux can run Linux containers, so you either want Linux to be a microkernel, or you want a microkernel that can run a Linux kernel. The latter exists, it's called WSL2
- throw0101d 2y ago> Only Linux can run Linux containers FreeBSD has been running Linux for about two decades†, "Fun with FreeBSD: Run Linux Containers on FreeBSD": * https://productionwithscissors.run/2022/09/04/containerd-linux-on-freebsd/ https://productionwithscissors.run/2022/09/04/containerd-lin... I ran the Linux binary of Return to Castle Wolfenstein back in the day on FreeBSD with NVidia drivers: * https://en.wikipedia.org/wiki/Return_to_Castle_Wolfenstein https://en.wikipedia.org/wiki/Return_to_Castle_Wolfenstein
- packetlost 2y agoWSL2 emulates a full machine via Hyper-V. Any OS that happens to have a microkernel and reasonable hypervisor implementation would meet that definition.
- doubled112 2y agoThe Linux kernel in a minimal VM has been done in other projects too. Firecracker came to mind first, but there must be others. I'd imagine this would allow you to run whatever kernel you wanted to start whatever "container image" you had planned. Quotes because I'm not sure if that's still really a container. https://firecracker-microvm.github.io/ https://firecracker-microvm.github.io/
- rurban 2y agoFiasko L4 happily runs Linux containers.
- tlavoie 2y agoMirageOS is for unikernels that can run on Xen or KVM, and I think would be very interesting for all sorts of network services. Each would be essentially its own VM, but with only the parts that are compiled into the service. https://mirageos.org/ https://mirageos.org/