-
Notifications
You must be signed in to change notification settings - Fork 141
Run rTorrent and Flood via Docker
Jesse Chan edited this page Dec 24, 2020
·
9 revisions
Discussions: github.com/jesec/flood/discussions/120
- config directory:
/home/jc/dlconfig
- data directory:
/mnt/data0
- owner of files:
jc
- UID: 1000
- GID: 1001
- get UID/GID with
id {username}
, for exampleid jc
- access Flood via port
3001
- rTorrent BitTorrent port is
6881
- run rTorrent as a daemon
Note that Flood does not pass through arguments to rTorrent at the moment.
As a result, to change rTorrent's configurations, there has to be a .rtorrent.rc
config file:
## Import default configurations
import = /etc/rtorrent/rtorrent.rc
## Listening port
network.port_range.set=6881-6881
In my case, I place the custom config file to /home/jc/dlconfig/.rtorrent.rc
.
docker run -it --rm \
-e HOME=/config \
-v /home/jc/dlconfig:/config \
-v /mnt/data0:/data \
-u 1000:1001 \
-p 3001:3001 \
-p 0.0.0.0:6881:6881 \
jesec/rtorrent-flood \
--port 3001 \
--allowedpath /data
Finally, access Flood and register a user with /config/.local/share/rtorrent/rtorrent.sock
rTorrent socket path.