Linux Docker Host with FreeNAS network storage

Notice: Page may contain affiliate links for which we may earn a small commission through services like Amazon Affiliates or Skimlinks.

KioskAdmin

Active Member
Jan 20, 2015
156
32
28
53
Hey guys, I'm trying to do something that should be really easy. I want to use docker w/ FreeNAS network. I don't want to FreeNAS 10 docker in VM. That's janky. I want to have many docker Linux hosts and then use a FreeNAS server as backing.

I read this Select a storage driver but it looks like the zfs is only local zfs storage.

Any recommended guides on setting this up?
 

manxam

Active Member
Jul 25, 2015
234
50
28
AFAIK, you'd have to have a share setup on the host computer via NFS, SMB, or iSCSI and then add a data volume to the docker image pointing at this location:
Code:
docker run -d -P --name test -v /your/shareDirectory:/directoryInDockerContainer test/myapp test test.sh
There's, apparently, a volume module that can be added allowing docker images to directly mount SMB, NFS, and some others. Further details here: Manage data in containers
 
  • Like
Reactions: Patrick