-
Notifications
You must be signed in to change notification settings - Fork 33
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[question] Linux container support? #4
Comments
Not yet; I'm focusing on the FreeBSD userland first. |
Would runj be responsible for mounting sysfs & proc or would containerd (or other higher level abstraction) have this responsibility? I'm actually guessing that's the only relevant hurdle, since most linux software depends on it. Besides that FreeBSD would just detect the ELF library and "it should just work" |
runj would be responsible for performing the mount operations in response to them being specified in the |
FWIW here's the relevant runtime config part:
Please mind that some ELF binaries may need to be rebranded in order for the kernel to find out the appropriate ABI type. |
This should not be necessary - fallback brand (for binaries not otherwise identified) can be set via the
sysctls. If Linux binaries are found that need a workaround (either sysctls or brandelf) please let us know so that we can update the Linuxulator to detect them automatically. See the brandinfo sections at https://github.com/freebsd/freebsd-src/blob/main/sys/amd64/linux/linux_sysvec.c#L834 for example. |
Ideally, a Linux container would be a Linux container with the associated Linux-specific metadata and so the FreeBSD port of containerd / runj would contain the logic for setting these things up in response to seeing "os" : "linux" in the image. |
@davidchisnall See containerd/containerd#5480 by @gizahNL for this 😄 |
Does/would runj support running linux containers? (aka: docker images?)
Obviously provided that the software in these containers does not make any syscalls not supported by the linuxulator.
Seeing that a lot of projects are (often unfortunately) moving to distributing Docker images and not even bothering to check platform compatibility with other OS's it would be a big boon if possible :)
That and VNET support would be amazing!
The text was updated successfully, but these errors were encountered: