this Docker Image is for testing, Please use checkout this https://github.com/BGmi/BGmi#docker
Dockerised Transmission BitTorrent client.
The simplest use case is to volume a local directory to the /downloads directory of the container, and publish the web UI (9091) and BitTorrent ports (6881):
docker run --detach --volume /your/download/dir:/downloads \
--publish 9091:9091 --publish 6881:6881 caseyfw/transmission
Transmission's web UI will now be available at http://localhost:9091 with the account username / password. Downloaded torrents will appear in /your/download/dir.
Setting the following environment variables with the docker --env argument will change their corresponding setting in Transmission:
ALLOWEDcomma separated whitelist of IP addresses allowed to access the web UI. Default:*(all IPs).DOWNLOAD_DIRthe directory in the container to put downloaded files. Default:/downloads. You probably don't want to change this, just volume a directory from your host machine to/downloadsin the container.INCOMPLETE_DIRthe directory in the container to put incomplete downloads. Default:/downloads/incomplete.CONFIG_DIRthe directory transmission uses to read/store config. Default:/etc/transmission. Setting this, and voluming aconfig.jsoninto the directory allows you to set configuration items that are not present here.PORTthe BitTorrent port. Default:6881. You probably don't want to change this, just map the port of your choosing to 6881 on the container using the--publishargument.WEB_PORTthe web UI port. Default:9091. You probably don't want to change this, just map the port of your choosing to 9091 on the container using the--publishargument.USERNAMEthe web UI username. Default:username.PASSWORDthe web UI username. Default:password.UIDthe user id to run Transmission as. Default:0(root). This is useful for ensuring downloads from Transmission are owned by the correct user. You probably want to set this to$(uid -u)which is likely1000. See the example below.
This container is useful for running Transmission on a RaspberryPi. Here is a suggested command to start Transmission if you have already installed Docker:
docker run --detach \
--name transmission
--restart=always \
--volume /home/pi/Downloads:/downloads \
--publish 8080:9091 \
--publish 6881:6881 \
--env "UID=$(id -u)" \
--env "USERNAME=admin" \
--env "PASSWORD=mysecretpassword" \
bgmidocker/transmission
Once run, Transmission's web UI will be available at http://localhost:8080 with the account admin / mysecretpassword. Downloads will appear in ~/Downloads and should have the correct permissions. Note the --restart=always will cause Docker to bring the container back up if it dies or the Pi is restarted.