4 ms·
So FreeBSD supposedly has full Linux kernel emulation or something to that effect. To the point where you can run Debian in a jail without virtualization? I am
by pdntspa 3y ago
So FreeBSD supposedly has full Linux kernel emulation or something to that effect. To the point where you can run Debian in a jail without virtualization? I am wondering if it is possible to rig up Docker to work in that?
Because I really adore jails but I agree that the tooling around them makes a mess of config and such. (I have been using ezjail which I'm told is now deprecated)
With so much of my world buying into the Docker cargo cult it would be nice if I could play along and I'm wondering if Linux-in-a-jail is a possible answer.
- znpy 3y ago> I am wondering if it is possible to rig up Docker to work in that? Unlikely, 99.9% the answer is no (at least not currently). FreeBSD does not have “full kernel emulation”. What it has is a table mapping linux syscalls to freebsd equivalent, essentially an adaptor. This, along with a typical linux runtime (glibc and other libraries) means that you can execute linux binaries. But this goes as far as the translation table goes. To run docker containers you’d need an equivalent syscall to create (pid, network, uts etc) namespaces and (cpu,memory) cgroups. There is no equivalent of those syscalls in FreeBSD at the time of writing, as far as I know.
- mikehotel 3y agoYou may want to check out iocage for managing jails. It has not had a release in a few years but it is maintained. https://www.freshports.org/sysutils/iocage/ https://www.freshports.org/sysutils/iocage/