Transmission daemon config in Docker

Discussion of Transmission that doesn't fit in the other categories
Post Reply
somebody
Posts: 1
Joined: Wed May 20, 2020 8:08 pm

Transmission daemon config in Docker

Post by somebody » Wed May 20, 2020 8:14 pm

Hello, guys! I'm trying to run transmission-daemon in docker container, but no success - I can't apply my config files.
What I mean is, I'm trying to copy settings.json into /etc/transmission-daemon/settings.json, but if run

Code: Select all

transmission-daemon --dump-settings
- I see that it's default (not from file)...
Could you help me with figuring out what's happening?

Dockerfile:

Code: Select all

FROM python:3.8
RUN apt-get update -y
RUN apt-get install transmission-daemon -y
COPY app/settings.json /etc/transmission-daemon/settings.json
COPY app/run.sh /run.sh

EXPOSE 9091 51413/tcp 51413/udp
CMD [ "bash", "run.sh"]

mike.dld
Transmission Developer
Posts: 283
Joined: Wed Dec 25, 2013 10:56 pm

Re: Transmission daemon config in Docker

Post by mike.dld » Thu May 21, 2020 4:30 pm

Depending on the distribution and build configuration, default path to settings.json may vary. You don't need to place the file at a specific location and wonder why it doesn't work; instead, when running the daemon pass it the -g/--config-dir option to set the directory containing the file explicitly.

ronpatton
Posts: 1
Joined: Wed Jul 15, 2020 2:21 am

Re: Transmission daemon config in Docker

Post by ronpatton » Wed Jul 15, 2020 2:38 am

Thanks for the information. It really helped me!

jacobscipio
Posts: 1
Joined: Tue Aug 11, 2020 2:02 am

Re: Transmission daemon config in Docker

Post by jacobscipio » Tue Aug 11, 2020 2:11 am

When running the daemon pass it the -g/--config-dir option to set the directory containing the file explicitly.

Post Reply