I am puzzled by what a dataset is in TrueNAS nomenclature. They are created within storage pools, so it makes sense to think of them as being "under" a specific pool. I can set limits on them (eg: 1GiB), which should mean that their size can never grow beyond said limit. Via the shell interface (under "System Settings > Shell") , it is possible to navigate to the folder belonging to a dataset (folder would be, `/mnt/<pool name>/<dataset name>/` ).
Is it possible to mount a dataset folder within a docker application so that the size limit is followed? If so, how?
(eg: the docker application can keep writing to the folder, but once the size limit is reached, further writes should fail)
As it currently stands (TrueNAS-SCALE-21.04-ALPHA.1), when clicking the "Launch docker image" button, there are 2 options to mount things -
* Host Path Volumes
* Volumes
If one were to select the first option (figure below),
we get this interface which asks us to select a "Host Path" (you need to click the "Add" button for this to appear). This looks like a file-system view to me and feels un-connected to any datasets I might have created earlier.
On the other hand the second option,
very clearly says "Dataset Name". But using this does not use the dataset I created earlier.
In fact, I opened a bug report about this issue, but it got closed with a "behaves as intended" resolution. I *think* the way things were explained (on the bug report), was that the "Dataset Name" (under 6. Volumes), does not refer to any exisitng datasets, but instead creates a brand new dataset which is physically located under the default iX Systems dataset.
Even saying this out-loud to myself feels confusing, so I'll just repeat my question - is it possible to mount an existing dataset within a docker application as a folder?
And well, what is the difference between these two mounting options?
I can't find any documentation to help me either. :/
Puzzled and confused,
- Abraham V.
Is it possible to mount a dataset folder within a docker application so that the size limit is followed? If so, how?
(eg: the docker application can keep writing to the folder, but once the size limit is reached, further writes should fail)
As it currently stands (TrueNAS-SCALE-21.04-ALPHA.1), when clicking the "Launch docker image" button, there are 2 options to mount things -
* Host Path Volumes
* Volumes
If one were to select the first option (figure below),
we get this interface which asks us to select a "Host Path" (you need to click the "Add" button for this to appear). This looks like a file-system view to me and feels un-connected to any datasets I might have created earlier.
On the other hand the second option,
very clearly says "Dataset Name". But using this does not use the dataset I created earlier.
In fact, I opened a bug report about this issue, but it got closed with a "behaves as intended" resolution. I *think* the way things were explained (on the bug report), was that the "Dataset Name" (under 6. Volumes), does not refer to any exisitng datasets, but instead creates a brand new dataset which is physically located under the default iX Systems dataset.
Even saying this out-loud to myself feels confusing, so I'll just repeat my question - is it possible to mount an existing dataset within a docker application as a folder?
And well, what is the difference between these two mounting options?
I can't find any documentation to help me either. :/
Puzzled and confused,
- Abraham V.