Giter VIP home page Giter VIP logo

rtorrent-lxc's Introduction

Rtorrent + Rutorrent

  • 0.9.6, latest

Update Jun 13 2017
The container now removes the apache.pid file and the rtorrent.lock upon startup.
Should fix some issues when restarting the container.

This is a container running Rtorrent with Rutorrent as WebUI. Rutorrent comes with 16 of my favorite plugins.

  • Auto Tools Plugin v3.6
  • CPU Load Plugin v3.6
  • Data Plugin v3.6
  • Erase Data Plugin v3.6
  • Ratio Plugin v3.6
  • Extended Ratio v3.6
  • File Drop v3.6
  • iPad Plugin v3.6
  • Look At v3.6
  • Noty v3.6
  • Retrackers Plugin v3.6
  • Seeding Time Plugin v3.6
  • Show Peers like wTorrent Plugin v3.6
  • Theme Plugin v3.6
  • Throttle Plugin v3.6
  • Track Lables Plugin v3.6
  • FlatUI Themes by exetico

Usage

Simply run

docker run --name rtorrent \
    -v /home/kerwood/Downloads:/downloads \
    -p 8181:80 \
    -p 51001:51001 \
    -d kerwood/rtorrent-lxc

Change rtorrent port

By default rtorrent uses port 51001-51001. You can change these ports with the RTORRENT_PORT environmental variable. Remember to publish the port(s) to. And yes, even if you specify only one port, you will have to write it as it was a range, 52002-52002. You can specify a range of ports, but its recommended to only use one. And remember that Docker will make as many iptables entries as there are ports in the range.

docker run --name rtorrent \
    -v /home/kerwood/Downloads:/downloads \
    -e RTORRENT_PORT=52002-52002 \
    -p 52002:52002 \
    -p 8181:80  \
    -d kerwood/rtorrent-lxc

Authentication

To get authentication use HTUSER and HTPASS.

docker run --name rtorrent \
    -v /home/kerwood/Downloads:/downloads \
    -e HTUSER=Admin \
    -e HTPASS=Passw0rd \
    -p 8181:80 \
    -p 51001:51001 \
    -d kerwood/rtorrent-lxc

Rtorrent watch folder

Rtorrent has a cool feature where it watches a folder for torrent files and starts them automatically. Just mount the volume /watch

docker run --name rtorrent \
    -v /home/kerwood/Downloads:/downloads \
    -v /home/kerwood/Watch:/watch \
    -p 8181:80 \
    -p 51001:51001 \
    -d kerwood/rtorrent-lxc

Consistent torrents

If you want to make your torrents consistent (being able to create a new container with the same torrents), just mount the volume /home/rtorrent/rtorrent-session Be sure to make the session directory on the host writable by uid/gid 1000 or by everyone. If rtorrent cannot write to the folder, rtorrent will not start. When ever you recreate a new container with existing session files, make sure to delete rtorrent.lock in the host session directory before running the new one. Or else rtorrent will fail to start.

docker run --name rtorrent \
    -v /home/kerwood/Downloads:/downloads \
    -v /home/kerwood/rtorrent-sessions:/home/rtorrent/rtorrent-session \
    -p 8181:80 \
    -p 51001:51001 \
    -d kerwood/rtorrent-lxc

Patrick Kerwood @ https://LinuxBloggen.dk
Fork it at Github https://github.com/Kerwood/Rtorrent-LXC

rtorrent-lxc's People

Contributors

kerwood avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

rtorrent-lxc's Issues

httpd (pid 24) already running

Hi there,

First of all thank you, I've been using your stuff for a while!

So I've installed docker and the container, things go well, but when I reboot the machine, or do a "docker stop" I end up with a httpd already running error when I try to start the container again: the docker logs gives me "httpd (pid 24) already running". I've trying killing the pid, but that does not work. Only fix is to remove the container and re-run it.

After some googling around I found that it was a case of Apache being grumpy that could get fixed by adding a script to remove apache2.pid But I see you have made that adjustment already with your startup.sh, so I'm confused as to why I'm still getting this issue.

Would you have any pointers as to how I could fix it? Let me know if I need to provide any other logs.

Thanks!

Autotools

Thank you for this.

For some reason, I can't get Autotools working on a file copy. I'm new to docker, so I'm not sure where log files might live so I can check those. I've tried mounting an additional directory inside my start script, as well as just making a sub directory inside the /downloads mount point. I'm kind of thinking maybe it's just a perms problem or something, but the docker engine appears to run as root so I'm stumped. I'm starting the container based on your example command.

#!/bin/bash

docker run --name rtorrent \
    -v /home/me/Downloads:/downloads \
    -e HTUSER=me \
    -e HTPASS=password \
    -p 8181:80 \
    -p 51001:51001 \
    -d kerwood/rtorrent-lxc

My goal is to get completed torrents copied in a directory, different from downloads, that syncs with btsync.

OSMC

I tried to get this working on OSMC, but it's not working. The web interface is not working for me.

Access to rtorrent scgi_port

Is access to the scgi_port available? couldn't see it documented. Would be useful to allow xmlrpc calls direct to rtorrent from 3rd party programs. Thanks

iocage Version

I don't suppose you'd like to port this to work in an iocage jail would you? I'm running FreeNAS jails with warden right now and it looks like I'll need to move them to iocage with the release of FreeNAS 11.2 coming in a few weeks

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.