Data and Mounts in Jails should be presistant and only avaiable outside the jail

Hi Everyone,

I’m very new to this world, so I apologize, for any stupid or noob question I may ask.

I have TrueNAS with a Jail running with Docker installed.

in the docker jail I have mounted the following directories:
–bind=‘/mnt/apps_storage/nextcloud:/mnt/nextcloud’
–bind=‘/mnt/apps_storage/nextcloud/config:/mnt/docker-aio-config’

in the jail I have nextcould running using “nextcloud/data” as data location.
so If I shell into the jail, and check what is in nextlcoud/data, I get the following:
"root@docker:~# ls /mnt/nextcloud/data/
admin appdata_oc6o6l1f71dv audit.log index.html nextcloud.log

if I exit the jail and check what is in truenas:
admin@truenas[~]$ ls /mnt/apps_storage/nextcloud/data
is empty

Where is the data? only exists inside Jail?

Thanks in advance for your time in trying to understand what is going on here
Ricky

I am a bit confused. Jails are a FreeBSD thing and docker is only available on Linux. What do you mean with “docker jail”? If you use docker run on Linux then mounting is done using -v or --mount.

Sorry, I’m running JailMaker in Truenas (and in one of the Jails I’m running docker - my jail name, in this case, is named docker).

the -bind information is what I have in my jail “edit”/configuration.

And in summary I see the data inside the jail, but I’m don’t see in Truenas (outside the jail)

issue resolved…re-installed everything and now everything is ok.