Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Permission issues with transmission folder #77

Closed
mashical opened this issue May 15, 2016 · 2 comments
Closed

Permission issues with transmission folder #77

mashical opened this issue May 15, 2016 · 2 comments

Comments

@mashical
Copy link

Hi, I can run the docker container okay and connect and download torrents just fine while connected to the vpn.

My issue is that the transmission folder (mount to /home/transmission for me) is set to root for user:group, so every time transmission downloads something I have to sudo chown or chmod to delete it from the folder.

I've tried changing from running with --privileged to
--cap_add=NET ADMIN --device /dev/net/tun
As I thought that might help, but I still get the same file/folder permission issue.

I've also tried editing the dockerfile and building a new image.
RUN mkdir /data
RUN chown -R nobody:nogroup /data
VOLUME /data
But it doesn't make a difference

Do you have any suggestions for managing permissions issue?

@rolandb5
Copy link
Contributor

rolandb5 commented May 16, 2016

Face the same issue, Sonarr or Couchpotato cannot alter/read the file due to this reason. Is there a way to set the Dockercontainer to run as a specific user?

@haugene
Copy link
Owner

haugene commented Jun 12, 2016

The Docker daemon is running as root and that's why the files created by the container is also owned by root. The solution is to create the files inside the container with a UID/GID that corresponds to the wanted user outside the container. As proposed in #89

Closing this issue and will follow up in the other issue instead.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants