Has anyone come across a plugin for docker volumes that allows you to connect a TrueNAS app (docker container) to a ZFS dataset and/or zVol?
Docker Volumes allow Docker to understand and manage its storage dependencies, and I’ve seen plugins for Flocker, GCE, Azure, and GlusterFS.
For smaller volumes local volumes (as default in TrueNAS apps) is good, but for larger volumes and volumes that you would like to access via a SMB/NFS share it would be awesome to mount a ZFS dataset as a docker volume. I can image zVol’s would be good to mount into docker as well.
I am using Docker bind mounts to mount ZFS datasets direct into containers for now, and a plugin may not exist, but thought I would ask the minds here in case I’m missing an opportunity.
Hi thanks @Evan123 yes that method uses what docker calls a bind mount which are reliable but like many things come with pro’s and con’s.
I am using those today to connect data sets where I need too, but I am wondering if anyone has come across a Docker Volume Plugin for ZFS/TrueNAS to use Docker’s native methods instead.
With TrueNAS you are not meant to take too much interest in what goes on under the hood. You can do pretty much anything with docker that you could do in docker-compose, but not reconfigure docker itself to work fundamentally differently, at least not within the TrueNAS supported product.