Replies: 1 comment 2 replies
-
I think it's inherently flawed that Trilium in docker would ask for It might be better -- if we need to run the app with minimum privilege -- to set up file permissions with root; then run the app as the dedicated user. Applications (and users) from outside of the container won't be stomping into the volume by accident or by purpose. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
The YML file in the root directory seemed old, so, I created my own like the one below, but it fails because it cannot access the data directory. I have tried the YML file in the root directory and it had the same problem. In the documentation file, it seems be explaining how to use Trilium with what Docker calls "bind mount".
Is "volume" not supported? Is that a bug or is there any reason why volume cannot be used and only bind mount should be used? I do not know Docker well, but I read that the process in the container can get the root privilege. Can't this permission problem be fixed by changing the permission of TRILIUM_DATA_DIR inside of the container?
I navigated into /var/lib/docker/volumes... and modified the permission of the
_data
directory to 777 and then Trilum started. But this is probably not a recommended method, I think, because the volume is supposed to be managed by Docker.Output
Beta Was this translation helpful? Give feedback.
All reactions