- Create ZFS pool
sudo zpool create -f zroot /dev/sdaX
- Create ZFS dataset
sudo zfs create -o mountpoint=/var/lib/docker zroot/docker
- Edit
/etc/defaults/docker
DOCKER_OPTS="-s zfs --storage-opt zfs.fsname=zroot/docker ..."
- Mount ZFS partition on boot
https://github.com/zfsonlinux/pkg-zfs/wiki/Ubuntu-ZFS-mountall-FAQ-and-troubleshooting