Hi everyone,
I've spent my afternoon trying to figure out how to mount one of my Synology shared drives in R Studio but I just can't seem to get it working.
Here's what I need to do:
I've created a shared folder in DSM called 'rstudio' and would like to be able to share files within this folder with the docker container. I'd like have this be the central repository for all of the R files our team is working on. I'd also at some point like to be able to set up separate accounts and everyone could have access to that folder (not necessary right now however and I'd like to get this working first before I worry about that).
I'm not great with docker compose so I'm just trying to get this set up in the DSM docker package. Right now I've configured the folder as /rstudio: /home/rstudio/r_home but every time I open R Studio and try and open the folder, I get this error:
I have my GID and UID set in the environment settings, so I thought this would allow access to the folder:
I then tried using portainer to build the container. I tried using docker-compose to put the UID and GID in the stack that way but I get the same result. I also tried mounting the folder this way-> /rstudio: /home/rstudio/r_home: z (this didn't work either).
I don't know how to resolve this. I've had containers access shared folders plenty of times in my media server and I've never had issues with permissions like this. I'd greatly appreciate some advice as I feel like I've hit a dead end. I'm also a noob so go easy on me lol.
Thanks in advance.
Also, here are the logs when I start the container:
I've spent my afternoon trying to figure out how to mount one of my Synology shared drives in R Studio but I just can't seem to get it working.
Here's what I need to do:
I've created a shared folder in DSM called 'rstudio' and would like to be able to share files within this folder with the docker container. I'd like have this be the central repository for all of the R files our team is working on. I'd also at some point like to be able to set up separate accounts and everyone could have access to that folder (not necessary right now however and I'd like to get this working first before I worry about that).
I'm not great with docker compose so I'm just trying to get this set up in the DSM docker package. Right now I've configured the folder as /rstudio: /home/rstudio/r_home but every time I open R Studio and try and open the folder, I get this error:
I have my GID and UID set in the environment settings, so I thought this would allow access to the folder:
I then tried using portainer to build the container. I tried using docker-compose to put the UID and GID in the stack that way but I get the same result. I also tried mounting the folder this way-> /rstudio: /home/rstudio/r_home: z (this didn't work either).
I don't know how to resolve this. I've had containers access shared folders plenty of times in my media server and I've never had issues with permissions like this. I'd greatly appreciate some advice as I feel like I've hit a dead end. I'm also a noob so go easy on me lol.
Thanks in advance.
-- post merged: --
Also, here are the logs when I start the container: