Docker cmd:
FROM arm32v7/ubuntu:18.04
RUN apt-get update -y
RUN apt-get install -y software-properties-common
RUN add-apt-repository ppa:transmissionbt/ppa
RUN apt-get update && apt-get install -y transmission-cli transmission-common transmission-daemon
ARG user=transmission
ARG group=transmission
ARG uid=1000
ARG gid=1000
RUN groupadd -g ${gid} ${group} && useradd -u ${uid} -g ${gid} -m -s /bin/bash ${user}
USER transmission
VOLUME /complete
VOLUME /incomplete
VOLUME /torrentfile
EXPOSE 9091/tcp
EXPOSE 51413/tcp
EXPOSE 51413/udp
ENTRYPOINT ["/usr/bin/transmission-daemon", "--foreground"]
CMD ["--watch-dir", "/torrentfile"]
Build:
DOCKER_BUILDKIT=1 docker build -t janake/transmission .
Command line:
docker run -d -p 9092:9091 -p 51414:51413
-v /host/transmission/folder:/home/transmission
-v /host/incomplete/folder:/incomplete
-v /host/complete/folder:/complete
-v /host/torrentfile/folder:/torrentfile
transmission
Docker compose:
---
version: "2.1"
services:
transmission:
image: janake/transmission
container_name: transmission
environment:
- PUID=1000
- PGID=1000
- USER=youruser
- PASS=yourpw
- TZ=Europe/Budapest
volumes:
- /path/to/yourdir/transmission/conf:/home/transmission
- /path/to/yourdir/complete:/complete
- /path/to/yourdir/incomplete:/incomplete
- /path/to/yourdir/torrentfile:/torrentfile
ports:
- 9091:9091
- 51413:51413
restart: unless-stopped