GithubHelp home page GithubHelp logo

docker-transmission's Introduction

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

docker-transmission's People

Contributors

zhen-huan-hu avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.