Container mounting a dataset on host

I’ve created a container so I can run Resilio Sync on the TrueNAS server rather than in a Windows VM on a Windows Host

I created the VM using Debian Bookworm (The name was from when I thought I’d use it for something else)

I created the disk mapping

/mnt/Vault/Huge → /mnt/Huge

testing

root@HDHomeRun:~# ls /mnt/Huge/
ls: cannot open directory ‘/mnt/Huge/’: Operation not permitted
root@HDHomeRun:~# cd /mnt
root@HDHomeRun:/mnt# ls -la
total 74
drwxr-xr-x 3 root root 3 Feb 7 15:24 .
drwxr-xr-x 17 root root 21 Feb 5 05:32 ..
drwxrwx— 50 nobody nogroup 105 Jan 24 18:37 Huge

obliviously the permission nobody nogroup is wrong but before I screw anything up I thought I’d ask

Googling is driving me down various blind alleys as the results are for 25.04 / 25.04 beta etc which don’t match

the Docs imply a drive rather than a mount point?

I don’t want to have to map the dataset via nfs/smb

Just to be clear, by container you mean an lxc, not a docker container right?
If the answer is yes try adding the truenas_container_unpriv_root user to the datasets ACL list. That user gets mapped to the root user inside the lxc and should let you access the dataset

That’s what it is

I’ll raise a ticket to get the Docs changed

You submit Documentation changes directly on the webpage. Little blue button on right hand side of the document you are viewing. You can include screenshots, etc.

1 Like

I think what you’re looking for is already covered in the Managing Container Permissions and Granting Root Access to Host Paths sections?

1 Like