I have to test some projects which only come with docker installation instructions. On our faculties server (ubuntu 22.04) I have and LXD environment with ZFS underneath to test all kind of stuff in these nice containers. According to the docs , docker doesn’t play nicely with ZFS, so to be on the safe side, is it best to foresee a ext4 partition, or btrfs to run the containers where I can start docker inside? I am a bit hesitant to install yet another complex filesystem on that server like btrfs.
You can use the LXD lvm driver which allows snapshots, but because it uses a block backed volume it exposes ext4 to the actual instance (which means you can then use overlayfs with docker).
Alternatively the btrfs driver works with LXD and docker (it creates nested BTRFS subvolumes), but do take note of: