darwin-containers / rund

OCI Container Runtime for Darwin
Apache License 2.0
432 stars 13 forks source link

Support for ZFS mounts #17

Open tmcgilchrist opened 9 months ago

tmcgilchrist commented 9 months ago

Is there interest in adding support for ZFS as an alternative to bindfs and macfuse? Does that even make sense for this project?

I've just discovered this project thanks to a colleague providing a link to it. It looks very promising and I'm trying it out. My apologies if the topic doesn't make sense.

I have been working on a sandboxed build environment for macOS to provide build infrastructure. The details of the implementation are outlined here. Our implementation uses a library called OBuilder to provide an experimental "docker build" alternative using btrfs/zfs snapshots and native OS containerisation (runc / jails). Our macOS implementation uses ZFS plus user accounts for sandboxes. This project seemed like an interesting improvement on our existing implementation.

Where can I find more details about the macOS base image format and what is included in it?

slonopotamus commented 9 months ago

bindfs is not doing anywhere, because mounting host dirs into container is a core Docker feature that is very often used.

Does that even make sense for this project?

That might make sense in the form of "we create ZFS volume and then run container mounting that volume inside".

Where can I find more details about the macOS base image format and what is included in it?

Base image is created using macos-jail Python script.


I need to dig a bit more into this OpenZFS thing and how it works on macOS at all.

slonopotamus commented 9 months ago

Wait, they (OpenZFS on OS X) implemented a kernel module? Holy moly.