I have three different docker containers that have different purposes. They all need to read and write to the same file area.
- The first container grabs files from the internet and stores them to
- The second container "listens" to this folder and processes the downloaded files. It then moves them to
- The third container runs a web server to let me download these files to my computer as needed.
My current issue came along when I moved my storage from my NAS to some new local storage. The NAS was mounted with
cifs and as such everything was read/write (mounted mapped as root@nas, I know, don't mindt that right now...). But now, the first container stores everything as host
root:root, and for some reason, the second container has decided that it doesn't want to read anything that is only root access on the host.
Should I create a separate user and use that for the docker containers (how do I do that?). And I also want to have access to the files, but I have my own user, should I make everything group accessible and add myself and the docker user to the same group? (How do I make every new file and folder be group readable and get a certain group ownership when they are created?)
I know enough linux to be dangerous (i.e. the root mount above) but this is more than I know. But I'd like to learn :)