Access hosts zfs from docker container

Is there a way to access the hosts zfs snapshots from within the docker?

I’m trying to get some custom backup, using zfs snapshots with send/receive, running on a cluster of docker based servers. To stick to the current setup, I’d like the backup service to run in a docker container as well. I’m having a hard time figuring out if there’s any way to access the hosts file system, on an administrative level, from within a docker container.

  • Cant connect from Node Js (in host) to a MySql container
  • How to use docker to create linux images per user on the same domain
  • AWS S3 Elastic Beanstalk Docker - /dev/fus: Operation not permitted
  • Jelastic run.log not working on docker
  • Segmentation Fault (core dumped) while running phpunit
  • Possible to write a text file (or some other file) in a docker container but access it when container has stopped?
  • I basically need a way to run zfs list, zfs snap and zfs send from within the container. My gut tells me “no”, but maybe there’s a clever way by some mount options and privilege wizardry

  • How to expose a Docker network to the host machine?
  • Permission Denied for SO_DEBUG socket option inside docker
  • Tutum Redeploy trigger doesn't rebuild from image
  • Using Docker for Image training in Python (New to this)
  • Docker Overlay network -service name issue between two nodes
  • Updating Docker, Docker Machine, Docker Compose
  • One Solution collect form web for “Access hosts zfs from docker container”

    Unfortunately, there is no way to do that. We’ve had the same problem ourselves, and the way we worked around it was by creating a container-less service which the containers can issue commands to, and the container-less service could then issue ZFS commands on their behalf and return the results. It’s not a perfect solution, but (at least for us) it was better than nothing.

    Docker will be the best open platform for developers and sysadmins to build, ship, and run distributed applications.