I am running into a problem with getting zfs running on a Ubuntu jammy (22.04 LTS) Docker image.
If I start with a fresh image and run
apt update
apt install zfsutils-linux -y
zpool create ....
I get the following error:
The ZFS modules are not loaded. Try running '/sbin/modprobe zfs' as root to load them.
After installing modprobe and attempting the command gives the following error:
modprobe: FATAL: Module zfs not found in directory /lib/modules/5.15.0-1027-gcp
Does anyone know what I need to do to get zfs working on this image?
I have already tried:
- apt install zfs-dkms
- Building the latest zfs from source