Skip to content

zhen-huan-hu/docker-transmission

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

docker-transmission

Dockerfile for Transmission Daemon 4.0.0+

Credit goes to @Nemric and @pigsyn:

The image listens to port 51413 by default for torrent traffic and port 9091 for RPC connection. There is no Web UI built-in so a seperate container for Transmission Web UI is needed or use the QT client.

The image expects three bind volumes: \config for configuratoin directory, \watch for watch directory, and \download for default download location. By default, having a standalone directory for incomplete torrent files is disabled.

The image honors the --user option for setting user and group ID inside the container, and the --group-add option for setting secondary groups.

Build an Docker Image

docker build -t transmission:4.0.0-debian .

Usage

Docker compose

version: '2.4'

services:
  transmission:
    image: transmission:4.0.0-debian
    container_name: transmission
    restart: unless-stopped
    user: "1000:1000"
    ports:
      - "51413:51413/tcp"
      - "51413:51413/udp"
      - "9091:9091/tcp"
    environment:
      - RPC_USER=admin
      - RPC_PASSWORD=password
      - RPC_WHITELIST=127.0.0.1,192.168.1.*
      - UMASK=002
      - TZ=America/Chicago
    volumes:
      - /var/containers/transmission/config:/config
      - /var/containers/transmission/watch:/watch
      - /var/containers/transmission/download:/download

Docker CLI

docker run -d \
  --name transmission \
  --restart unless-stopped \
  --user 1000:1000 \
  -p 51413:51413/tcp \
  -p 51413:51413/udp \
  -p 9091:9091/tcp \
  -e RPC_USER=admin \
  -e RPC_PASSWORD=password \
  -e RPC_WHITELIST=127.0.0.1,192.168.1.* \
  -e UMASK=002 \
  -e TZ=America/Chicago \
  -v /var/containers/transmission/config:/config \
  -v /var/containers/transmission/watch:/watch \
  -v /var/containers/transmission/download:/download \
  transmission:4.0.0-debian

Environment Variables

Name Function
RPC_USER Set RPC user name
RPC_PASSWORD Set RPC password
RPC_WHITELIST Set comma-delimited list of IP addresses allowed for RPC
UMASK Change default file permission https://en.wikipedia.org/wiki/Umask
TZ Change default time zone

About

Dockerfile for Transmission Daemon 4.0.0+

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published