I’m almost certain that my problem is not related to truenas but maybe somebody here can point me to a helpful resource that can help me.
I’ve been trying to install openproject in a docker container for the last 3 weeks but it keeps failing.
In my environment Docker is installed in a Debian VM in truenas Core 13.0-U2.
I created a user and group named “docker” in truenas and in the VM, with the same UID and GID in both places.
I created an NFS share in truenas and the owner of the dataset is docker:docker.
I can mount the NFS share from the vm and the user docker can create, delete, modify, change permissions and ownership (with the use of "sudo") of files created in the NFS share (so full privileges).
From within the VM, I deployed portainer with a volume pointing to the NFS share for persistent data. This went without a hickup.
When i try to install the openproject Stack i’m getting a lot of permission errors. After investigating i realized that this Stack creates an user named “APP:APP” with UID 1000 and GID 1000.
So, when openproject creates a file in the volume (which is pointing to the NFS share), that file is owned by 1000:1000 which doesn’t exist i the VM but in TrueNAS those are the UID:GID of a user that has no privileges in the NFS share. Therefore, openproject cannot modify or change permissions of this file after it is created.
I think this is the culprit of my problem.
I tried using the docker user namepaces ro map the user inside the docker container to my user “docker” in the vm/truenas but as soon as i create the file /etc/docker/daemon/json and restart the VM portainer fails and gives me permission errors.
Do any of you know how to solve this problem so i can run openproject?
I’ve been trying to install openproject in a docker container for the last 3 weeks but it keeps failing.
In my environment Docker is installed in a Debian VM in truenas Core 13.0-U2.
I created a user and group named “docker” in truenas and in the VM, with the same UID and GID in both places.
I created an NFS share in truenas and the owner of the dataset is docker:docker.
I can mount the NFS share from the vm and the user docker can create, delete, modify, change permissions and ownership (with the use of "sudo") of files created in the NFS share (so full privileges).
From within the VM, I deployed portainer with a volume pointing to the NFS share for persistent data. This went without a hickup.
When i try to install the openproject Stack i’m getting a lot of permission errors. After investigating i realized that this Stack creates an user named “APP:APP” with UID 1000 and GID 1000.
So, when openproject creates a file in the volume (which is pointing to the NFS share), that file is owned by 1000:1000 which doesn’t exist i the VM but in TrueNAS those are the UID:GID of a user that has no privileges in the NFS share. Therefore, openproject cannot modify or change permissions of this file after it is created.
I think this is the culprit of my problem.
I tried using the docker user namepaces ro map the user inside the docker container to my user “docker” in the vm/truenas but as soon as i create the file /etc/docker/daemon/json and restart the VM portainer fails and gives me permission errors.
Do any of you know how to solve this problem so i can run openproject?