Lighthouse
Dabbler
- Joined
- Nov 15, 2018
- Messages
- 15
So, the setup is I have two separate machines, one obviously FreeNAS and other is Ubuntu Server with docker containers.
Using NFS, I mounted a dataset from FreeNAS to my docker server, and bound the folders to containers so that any persistent data should be stored to FreeNAS instead of local machine.
Now, this works for some containers but the problem begins with database. I have two MariaDB Servers as containers and they simply do not like to use remote mount from FreeNAS because it seems they are trying to change ownership of files and folders, fail to do so then stop. I kind of understand the 'user' of docker container is different from the 'user' of the Ubuntu Server itself but I just can't solve this problem.
I tried to mount via cifs instead of nfs, but then all containers are unable to read/write the mounted dataset at all.
Is there any good solution to this?
Using NFS, I mounted a dataset from FreeNAS to my docker server, and bound the folders to containers so that any persistent data should be stored to FreeNAS instead of local machine.
Now, this works for some containers but the problem begins with database. I have two MariaDB Servers as containers and they simply do not like to use remote mount from FreeNAS because it seems they are trying to change ownership of files and folders, fail to do so then stop. I kind of understand the 'user' of docker container is different from the 'user' of the Ubuntu Server itself but I just can't solve this problem.
I tried to mount via cifs instead of nfs, but then all containers are unable to read/write the mounted dataset at all.
Is there any good solution to this?