Page 1 of 2

Deluge 2.0 Beta in a Docker

Posted: Mon Mar 05, 2018 4:58 pm
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.

Re: Deluge 2.0 Beta in a Docker

Posted: Wed Mar 07, 2018 7:24 pm
by sinaptika
What cpu does your nas use?

Re: Deluge 2.0 Beta in a Docker

Posted: Thu Mar 08, 2018 12:26 pm
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 :-)

Re: Deluge 2.0 Beta in a Docker

Posted: Thu Mar 08, 2018 1:04 pm
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.

Re: Deluge 2.0 Beta in a Docker

Posted: Thu Mar 08, 2018 2:30 pm
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.

Re: Deluge 2.0 Beta in a Docker

Posted: Thu Mar 08, 2018 3:09 pm
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).

Re: Deluge 2.0 Beta in a Docker

Posted: Thu Mar 08, 2018 4:23 pm
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!

Re: Deluge 2.0 Beta in a Docker

Posted: Thu Mar 08, 2018 4:52 pm
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

Re: Deluge 2.0 Beta in a Docker

Posted: Thu Mar 08, 2018 8:37 pm
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?

Re: Deluge 2.0 Beta in a Docker

Posted: Thu Mar 08, 2018 10:30 pm
by sinaptika
Bash is not installed, use /bin/ash.