Deluge 2.0 Beta in a Docker

Suggestions and discussion of future versions
jeps
Member
Member
Posts: 27
Joined: Wed May 18, 2011 4:32 pm
OS or Distro: Ubuntu

Deluge 2.0 Beta in a Docker

Postby jeps » Mon Mar 05, 2018 4:58 pm

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
OS or Distro: Linux/Alpine,Debian

Re: Deluge 2.0 Beta in a Docker

Postby sinaptika » Wed Mar 07, 2018 7:24 pm

What cpu does your nas use?

jeps
Member
Member
Posts: 27
Joined: Wed May 18, 2011 4:32 pm
OS or Distro: Ubuntu

Re: Deluge 2.0 Beta in a Docker

Postby jeps » Thu Mar 08, 2018 12:26 pm

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
OS or Distro: Linux/Alpine,Debian

Re: Deluge 2.0 Beta in a Docker

Postby sinaptika » Thu Mar 08, 2018 1:04 pm

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
Member
Member
Posts: 27
Joined: Wed May 18, 2011 4:32 pm
OS or Distro: Ubuntu

Re: Deluge 2.0 Beta in a Docker

Postby jeps » Thu Mar 08, 2018 2:30 pm

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
OS or Distro: Linux/Alpine,Debian

Re: Deluge 2.0 Beta in a Docker

Postby sinaptika » Thu Mar 08, 2018 3:09 pm

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
Member
Member
Posts: 27
Joined: Wed May 18, 2011 4:32 pm
OS or Distro: Ubuntu

Re: Deluge 2.0 Beta in a Docker

Postby jeps » Thu Mar 08, 2018 4:23 pm

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
OS or Distro: Linux/Alpine,Debian

Re: Deluge 2.0 Beta in a Docker

Postby sinaptika » Thu Mar 08, 2018 4:52 pm

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
Member
Member
Posts: 27
Joined: Wed May 18, 2011 4:32 pm
OS or Distro: Ubuntu

Re: Deluge 2.0 Beta in a Docker

Postby jeps » Thu Mar 08, 2018 8:37 pm

****, 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
OS or Distro: Linux/Alpine,Debian

Re: Deluge 2.0 Beta in a Docker

Postby sinaptika » Thu Mar 08, 2018 10:30 pm

Bash is not installed, use /bin/ash.


Return to “Development”

Who is online

Users browsing this forum: No registered users and 3 guests