Copying data from Docker container to host FreeNAS machine?

Status
Not open for further replies.

victorhooi

Contributor
Joined
Mar 16, 2012
Messages
184
Hi,

I have a FreeNAS instance running Bhyve VM (Ubuntu 18.04), and a Docker container (qbittorrent, with a web GUI).

The Bhyve VM is backed by a ZVOL, formatted as ext4.

I'm downloading data in the Docker container directly to a directory on the Bhyve disk.

What is the best way of getting data out of the Docker container, to the parent FreeNAS machine?

Is there some way of mounting a CIFS volume directly within the Docker container, and exposing that to the qbittorrent client?

Or should I mount the CIFS volume in Bhyve, and mount that to the Docker container?

What do people suggest?

Cheers,
Victor
 

sretalla

Powered by Neutrality
Moderator
Joined
Jan 1, 2016
Messages
9,703
The conventional wisdom says that you mount an NFS share from FreeNAS to the docker host, then share it inside the container with the docker run -v switch.

I think CIFS would also work, but haven't experimented with it personally.
 
Status
Not open for further replies.
Top