Rutorrent is a popular rtorrent client with a webui for ease of use.
| Architecture | Tag |
|---|---|
| x86-64 | amd64-latest |
Here are some example snippets to help you get started creating a container.
Compatible with docker-compose v2 schemas.
---
version: "2.1"
services:
rutorrent:
image: edifus/rutorrent
container_name: rutorrent
environment:
- PUID=1000
- PGID=1000
- DOCKER_MODS=edifus/mods:rutorrent-autodl-irssi #optional
volumes:
- /path/to/rutorrent/config:/config
- /path/to/rutorrent/downloads:/downloads
ports:
- 80:80
- 5000:5000
- 51413:51413
- 6881:6881/udp
restart: unless-stopped
docker run -d \
--name=rutorrent \
-e PUID=1000 \
-e PGID=1000 \
-e DOCKER_MODS=edifus/mods:rutorrent-autodl-irssi `#optional` \
-p 80:80 \
-p 5000:5000 \
-p 51413:51413 \
-p 6881:6881/udp \
-v /path/to/rutorrent/config:/config \
-v /path/to/rutorrent/downloads:/downloads \
--restart unless-stopped \
edifus/rutorrent
Container images are configured using parameters passed at runtime (such as those above). These parameters are separated by a colon and indicate <external>:<internal> respectively. For example, -p 8080:80 would expose port 80 from inside the container to be accessible from the host's IP on port 8080 outside the container.
| Parameter | Function |
|---|---|
-p 80 | ruTorrent Web UI |
-p 5000 | scgi port |
-p 51413 | Bit-torrent port |
-p 6881/udp | Bit-torrent port |
-e PUID=1000 | for UserID - see below for explanation |
-e PGID=1000 | for GroupID - see below for explanation |
-e DOCKER_MODS=user/repo:tag | enable optional mods |
-v /config | where ruTorrent should store it's config files |
-v /downloads | path to your downloads folder |
You can set any environment variable from a file by using a special prepend FILE__.
As an example:
-e FILE__PASSWORD=/run/secrets/mysecretpassword
Will set the environment variable PASSWORD based on the contents of the /run/secrets/mysecretpassword file.
This image provides the ability to override the default umask settings for services started within the containers using the optional -e UMASK=022 setting.
Keep in mind umask is not chmod, it masks permissions based on it's value. Please read up here for more information.
When using volumes (-v flags) permissions issues can arise between the host OS and the container, we avoid this issue by allowing you to specify the user PUID and group PGID.
Ensure any volume directories on the host are owned by the same user you specify and any permissions issues will vanish like magic.
In this instance PUID=1000 and PGID=1000, to find yours use id user as below:
$ id username
uid=1000(dockeruser) gid=1000(dockergroup) groups=1000(dockergroup)
Webui can be found at <your-ip>:80 , configuration files for rtorrent are in /config/rtorrent, php in config/php and for the webui in /config/rutorrent/settings.
Settings, changed by the user through the "Settings" panel in ruTorrent, are valid until rtorrent restart. After which all settings will be set according to the rtorrent config file (/config/rtorrent/rtorrent.rc),this is a limitation of the actual apps themselves.
** Important note for unraid users or those running services such as a webserver on port 80, change port 80 assignment **
** It should also be noted that this container when run will create subfolders ,completed, incoming and watched in the /downloads volume.**
** The Port Assignments and configuration folder structure has been changed from the previous ubuntu based versions of this container and we recommend a clean install **
Umask can be set in the /config/rtorrent/rtorrent.rc file by changing value in system.umask.set
If you are seeing this error Caught internal_error: 'DhtRouter::get_tracker did not actually insert tracker.'. , a possible fix is to disable dht in /config/rtorrent/rtorrent.rc by changing the following values.
dht.mode.set = disable
protocol.pex.set = no
If after updating you see an error about connecting to rtorrent in the webui, remove or comment out these lines in /config/rtorrent/rtorrent.rc ,whatever value is set, yes or no. Just setting them to no will still cause the error..
trackers.use_udp.set = yes
protocol.pex.set = no
To add plugins, create a plugins folder in your /config directory and add your plugin folders. Ensure proper user and group ownership is set once you add the directories.
To add themes, create a themes folder in your /config directory and add your theme folders. Ensure proper user and group ownership is set once you add the directories.
docker exec -it rutorrent /bin/bashdocker logs -f rutorrentBelow are the instructions for updating containers:
docker-compose pull
docker-compose pull rutorrentdocker-compose up -d
docker-compose up -d rutorrentdocker image prunedocker pull ghcr.io/edifus/rutorrentdocker stop rutorrentdocker rm rutorrent/config folder and settings will be preserved)docker image prunedocker run --rm \
-v /var/run/docker.sock:/var/run/docker.sock \
containrrr/watchtower --run-once rutorrent
docker image pruneIf you want to make local modifications to these images for development purposes or just to customize the logic:
git clone https://github.com/edifus/docker-rutorrent.git
cd docker-rutorrent
docker build --no-cache --pull -t edifus/rutorrent:test .
Content type
Image
Digest
Size
74.6 MB
Last updated
over 4 years ago
docker pull edifus/rutorrent