Deluge 2.0 Beta in a Docker

Suggestions and discussion of future versions
jeps
Leecher
Leecher
Posts: 80
Joined: Wed May 18, 2011 4:32 pm

Deluge 2.0 Beta in a Docker

Post by jeps »

Hi all.

Does anyone know if a Docker package of Deluge 2.0 Beta exists?
Would be nice to have in running on my NAS.
sinaptika
Member
Member
Posts: 41
Joined: Thu Apr 27, 2017 6:23 pm

Re: Deluge 2.0 Beta in a Docker

Post by sinaptika »

What cpu does your nas use?
jeps
Leecher
Leecher
Posts: 80
Joined: Wed May 18, 2011 4:32 pm

Re: Deluge 2.0 Beta in a Docker

Post by jeps »

An INTEL Atom C2538

I have already tried do use an Ubuntu docker package and apparently all went well.
But resulted in a massive memory leak, so bad I had to forcefully shut-down the docker.
Which in return made it unwilling to start again.

So I am interested in a package that works better :-)
sinaptika
Member
Member
Posts: 41
Joined: Thu Apr 27, 2017 6:23 pm

Re: Deluge 2.0 Beta in a Docker

Post by sinaptika »

This should get you on your way, as long as you use an x86 cpu. So while it won't work on ARM, it will work fine for you.
1.

Code: Select all

mkdir ~/deluge
2.

Code: Select all

docker run -d \
--name c_deluge \
-p 50100:50100 \
-p 58846:58846 \
-p 8112:8112 \
-v ~/deluge:/opt/deluge/complete \
sinaptika/deluge:dev
3.

Code: Select all

docker exec -it c_deluge deluged-pass.sh
Some tips:
Read the info page: https://hub.docker.com/r/sinaptika/deluge/
If you feel comfortable with docker, you should consider using two images (one for the web interface, one for the daemon)
If you don't use the web interface, use the sinaptika/deluged:dev image
Ask if you have any other questions.
jeps
Leecher
Leecher
Posts: 80
Joined: Wed May 18, 2011 4:32 pm

Re: Deluge 2.0 Beta in a Docker

Post by jeps »

Wow, great work.

I'll try it.
Newbie alert!
I have tried several Docker packages, so I am quite comfortable using it.
Do you have an url for the docker repository so that I can have my Synology NAS downloading the image.
I prefer this over creating my own Docker in bash.


Ahh, the docker is version 1.3.15 of Deluge.
I was posting in this dev thread as I wanted a dev version of Deluge 2.0 Docker.
sinaptika
Member
Member
Posts: 41
Joined: Thu Apr 27, 2017 6:23 pm

Re: Deluge 2.0 Beta in a Docker

Post by sinaptika »

The part before ":" is the image in docker hub. The part after ":" is the tag of the image.
sinaptika/deluge:dev is Deluge 2.0b1
sinaptika/deluge == sinaptika/deluge:latest == sinaptika/deluge:0.8 is Deluge 1.3.15
So :dev is what you are looking for.
The tags are also explained in the repo info on docker hub.

As for the url, I'm not 100% sure what DSM thinks is the url for the docker repository, but the link I posted should be it:
https://hub.docker.com/r/sinaptika/deluge/
I also tought that dsm has a gui for searching images on docker hub. Are you sure you can't just search for sinaptika/deluge:dev ?

As for using the shell or DSM: You will need to put the ports and volume mounts somewhere.
I'm sure that there must be a advanced/custom/something_something tab or button when creating the containers in DSM.
There must be some fields you can enter, definitely Volumes and Ports, hopefully also Environment Variables.
Give us a screenshot, I'l tell you where it goes (although you might figure out most of them on your own).
jeps
Leecher
Leecher
Posts: 80
Joined: Wed May 18, 2011 4:32 pm

Re: Deluge 2.0 Beta in a Docker

Post by jeps »

OMG, sorry.
A search for "sinaptika" cleared things.

Normally I choose my "shared download folder" as external mount - the folder I normally use for Bittorrent downloads.
Because it is easier, I normally choose a bridged network.
When using bridged network you limit yourself to 1 Deluge running, but I can live with that.

Thank you for the info!
sinaptika
Member
Member
Posts: 41
Joined: Thu Apr 27, 2017 6:23 pm

Re: Deluge 2.0 Beta in a Docker

Post by sinaptika »

I think host networking is the one you use. Bridge is the one with port maping and nat.
I would also mount the config directory (/opt/deluge/config).

hf
jeps
Leecher
Leecher
Posts: 80
Joined: Wed May 18, 2011 4:32 pm

Re: Deluge 2.0 Beta in a Docker

Post by jeps »

****, when I try to bash into the running docker, I get this error:
"stat /bin/bash: no such file"

Something is broke, but is it fixable?
sinaptika
Member
Member
Posts: 41
Joined: Thu Apr 27, 2017 6:23 pm

Re: Deluge 2.0 Beta in a Docker

Post by sinaptika »

Bash is not installed, use /bin/ash.
Post Reply