Install Deluge Inside Docker Container in Linux

Install Deluge Inside Docker Container in Linux

Deluge is a BitTorrent client that allows downloading files. It is an open-source project available under the GNU General Public License.

This tutorial explains how to install Deluge inside a Docker container in the Linux. Commands have been tested on Ubuntu.

Prepare environment

Make sure you have installed Docker in your system. If you are using Ubuntu, installation instructions can be found in the post.

Install Deluge

  • Host network

Run the following command to create a container for Deluge that uses host network:

docker run -d --name=deluge --restart=always --network=host \
    -v /opt/deluge/config:/config \
    -v /opt/deluge/downloads:/downloads \
    linuxserver/deluge
  • User-defined bridge network

User-defined bridge network can be used for listening on different port. By default, Deluge service is listening for TCP and UDP connections on port 6881. Web interface is available on port 8112. Ports can be changed with -p option.

docker network create app-net
docker run -d --name=deluge --restart=always --network=app-net \
    -p 8080:8112 -p 8081:6881 -p 8081:6881/udp \
    -v /opt/deluge/config:/config \
    -v /opt/deluge/downloads:/downloads \
    linuxserver/deluge

Testing Deluge

Open a web browser and go to http://<IP_ADDRESS>:8112, where <IP_ADDRESS> is the IP address of the system. Log in to the web interface with the default password (deluge).

Deluge Inside Docker Container in Linux

Uninstall Deluge

To completely remove Deluge, remove its container:

docker rm --force deluge

Remove Deluge image:

docker rmi linuxserver/deluge

You can also remove Deluge data:

sudo rm -rf /opt/deluge

If a user-defined bridge network was created, you can delete it as follows:

docker network rm app-net

The 2 Comments Found

  1. Avatar
    Lliam Reply

    I have this problem where I install deluge and get to the webgui and start a torrent but it wont transfer any data whatsoever. running a VPN so thought it may be permissions??

    • Avatar
      lindevs Reply

      Make sure that the necessary ports are open on your network. If you're using a firewall, make sure that it's configured to allow incoming and outgoing traffic on the appropriate ports. I recommend testing Deluge that running on Docker that installed in local environment and no VPN.

Leave a Comment

Cancel reply

Your email address will not be published.