Skip to content

Run rTorrent and Flood via Docker

Jesse Chan edited this page Dec 11, 2020 · 9 revisions

rTorrent + Flood

Discussions: github.com/jesec/flood/discussions/120

Example

Suppose the specifications are:

  • config directory: /home/jc/dlconfig
  • data directory: /mnt/data0
  • owner of files: jc
    • UID: 1000
    • GID: 1001
    • get UID/GID with id {username}, for example id jc
  • access Flood via port 80
  • rTorrent BitTorrent port is 6881
  • run rTorrent as a daemon

Run Flood and rTorrent:

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 complete .rtorrent.rc config file in the config directory. Get the default one from jesec/rtorrent:doc/rtorrent.rc and modify it to fit your needs.

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 80:80 \
-p 0.0.0.0:6881:6881 \
jesec/rtorrent-flood \
--port 80 \
--allowedpath /data

Finally, access Flood and register a user with /config/.local/share/rtorrent/rtorrent.sock rTorrent socket path.