by nullwasamistake · 7y ago · 0 comments
There's so many bugs I've just stopped caring. Like many devs, I have a bash alias to blow everything away when the daemon gets funky. And it behaves differently enough between platforms that, at least at my company, we've given up on running the same containers between different OS.
I really think the endgame will be a VM based container system backwards compatible with docker. At VM level it's far easier to deal with kernel level incompatibility. Not to mention the constant security bugs that come from sharing a kernel. Somewhat ironically MS is already doing this in a way by hosting a Linux kernel in a VM for their docker implementation. They're only a step away from launching a kernel for each container.
With how cheap ram is these days, sharing a kernel is pointless. You save maybe 50mb of ram per container in return for maddening implementation complexity and worse performance
I don't think ram use is the reason to share the kernel - the main advantages are startup time and IO performance.
Startup time is definitely a consideration but you could lower this to container levels in many cases by keeping a couple VM's "warm" but not running
There's no way virtualized access to IO should be better than the host, so the containers should be no worse than that.
With SR-IOV on VM's each gets it's own network stack and it's handled in hardware by the NIC.
VM networking is as fast as the host. Container networking is not
Kata Containers?
> Kata Containers is an open source community working to build a secure container runtime with lightweight virtual machines that feel and perform like containers, but provide stronger workload isolation using hardware virtualization technology as a second layer of defense.
Since Docker just uses Linux namespaces under the hood, I assumed it would have different behaviors between Linux, Linux in a VM, FreeBSD Linux compat, etc. Maybe VMs got us used to a level of compatibility that Docker can't provide.
This is pretty much what ChromeOS does to run Linux apps with Crostini. IMO it's pretty fantastic.