My setup is the following:
Physical host with QEMU/KVM -> VM with Docker -> rtorrent Docker container
I have a ZFS pool called "main" with a dataset called "data". The "data" dataset is mounted on the VM via the virtio kernel module as suggested via this link. From here, my rtorrent Docker container has its download volume mapped to the mounted dataset on the VM:
$ docker run -dt --name rtorrent-rutorrent --network=host -p 8080:80 -p 49160:49160/udp -p 49161:49161 -v /data/rtorrent:/downloads -e "NOIPV6=1" diameter/rtorrent-rutorrent:latest
Here's where I'm confused: when I'm attached to the container, I can write to the dataset via touch, wget without issues. When I add a torrent to rtorrent however, nothing writes. It sits on "downloading" with no download speed. As soon as I change the container volume to point to the Docker VM local disk, everything works without issues.
I've done a couple of straces on the rtorrent process (link here) but there's not a whole lot that stands out to me here. Any input would be appreciated.