Docker, add UID and GID env var
Hello
Can you please add a way to control the UID and GID for the downloaded file ? Something like this in the dockerfile
FROM whatever
ENV UID=1000
ENV GID=1000
RUN groupadd -g $GID cloudtorrent
RUN useradd -m -u $UID -g $GID -s /bin/bash cloudtorrent
USER cloudtorrent
CMD cloudtorrent
My use case is, I'm using cloudtorrent to download files in a torrent folder which is then shared / synchronized via NextCloud. NextCloud container use UID 33 / GID 33, actually cloudtorrent use root, hence UID 1 / GID 1. So NextCloud can't see downloaded torrent.
The same problem will occur for any similar case.
Yes this would be useful, same issue when integrating with a Plex container On Thu, 13 Sep 2018 at 11:01 pm Rémy G. [email protected] wrote:
Hello
Can you please add a way to control the UID and GID for the downloaded file ? Something like this in the dockerfile
FROM whatever ENV UID=1000 ENV GID=1000 RUN groupadd -g $GID cloudtorrent RUN useradd -m -u $UID -g $GID -s /bin/bash cloudtorrent USER cloudtorrent CMD cloudtorrent
My use case is, I'm using cloudtorrent to download files in a torrent folder which is then shared / synchronized via NextCloud. NextCloud container use UID 33 / GID 33, actually cloudtorrent use root, hence UID 1 / GID 1. So NextCloud can't see downloaded torrent.
The same problem will occur for any similar case.
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/jpillora/cloud-torrent/issues/259, or mute the thread https://github.com/notifications/unsubscribe-auth/AAmr8x_HMj39LdQHIHBMfmbblizOVzFIks5ualdBgaJpZM4WnNSY .