binhex-qbittorrent

binhex-qbittorrent

Docker app from Binhex's Repository

Overview

qBittorrent is a bittorrent client programmed in C++ / Qt that uses libtorrent (sometimes called libtorrent-rasterbar) by Arvid Norberg. It aims to be a good alternative to all other bittorrent clients out there. qBittorrent is fast, stable and provides unicode support as well as many features.

Application

qBittorrent

Description

qBittorrent is a bittorrent client programmed in C++ / Qt that uses libtorrent (sometimes called libtorrent-rasterbar) by Arvid Norberg. It aims to be a good alternative to all other bittorrent clients out there. qBittorrent is fast, stable and provides unicode support as well as many features.

Build notes

Latest stable qBittorrent release from Arch Linux repo.

Usage

docker run -d \
    -p 8080:8080 \
    -p 58946:58946 \
    -p 58946:58946/udp \
    --name=<container name> \
    -v <path for data files>:/data \
    -v <path for config files>:/config \
    -v /etc/localtime:/etc/localtime:ro \
    -e GLUETUN_INCOMING_PORT=<yes|no> \
    -e ENABLE_STARTUP_SCRIPTS=<yes|no> \
    -e DEBUG=<true|false> \
    -e HEALTHCHECK_COMMAND=<command> \
    -e HEALTHCHECK_ACTION=<action> \
    -e HEALTHCHECK_HOSTNAME=<hostname> \
    -e UMASK=<umask for created files> \
    -e WEBUI_PORT=<port> \
    -e QBITTORRENT_WEBUI_USER=<username> \
    -e QBITTORRENT_WEBUI_PASSWORD=<password> \
    -e PUID=<uid for user> \
    -e PGID=<gid for user> \
    binhex/arch-qbittorrent

Please replace all user variables in the above command defined by <> with the correct values.

Access qBittorrent (web ui)

http://<host ip>:8080/

Credentials

Variable Default Description
QBITTORRENT_WEBUI_USER admin WebUI username
QBITTORRENT_WEBUI_PASSWORD (auto-generated) WebUI pwd, see note

Username:- admin (or the value of QBITTORRENT_WEBUI_USER)

Password (if QBITTORRENT_WEBUI_PASSWORD not set):-

On first run a random password is auto-generated and shown in /config/supervisord.log. Look for a line like:

[info] QBITTORRENT_WEBUI_PASSWORD not set, auto-generated password: AbCdEfGh1

On first run (no config yet), set -e QBITTORRENT_WEBUI_PASSWORD=<your password> to use your own password instead of an auto-generated one.

On subsequent runs the env var is only used for API authentication (required when GLUETUN_INCOMING_PORT=yes). It will NOT overwrite whatever password is already stored in the config — that can only be changed from inside the WebUI under Options → Web UI → Authentication.

PIA example

docker run -d \
    -p 8080:8080 \
    -p 58946:58946 \
    -p 58946:58946/udp \
    --name=qbittorrent \
    -v /root/docker/data:/data \
    -v /root/docker/config:/config \
    -v /etc/localtime:/etc/localtime:ro \
    -e GLUETUN_INCOMING_PORT=no \
    -e ENABLE_STARTUP_SCRIPTS=no \
    -e DEBUG=false \
    -e UMASK=000 \
    -e WEBUI_PORT=8080 \
    -e PUID=0 \
    -e PGID=0 \
    binhex/arch-qbittorrent

WebUI notes

Port

Due to issues with CSRF and port mapping, should you require to alter the port for the webui you need to change both sides of the -p 8080 switch AND set the WEBUI_PORT variable to the new port.

Password

The env var QBITTORRENT_WEBUI_PASSWORD is used for two things:

  1. First run — hashed and written to the config as the initial password
  2. All runs — used for API authentication (when GLUETUN_INCOMING_PORT=yes)

Once a password hash exists in the config (whether auto-generated or user-set), it is never overwritten by the env var. To change your password, use the WebUI under Options → Web UI → Authentication.

For example, to set the port to 8090 you need to set:-


    -p 8090:8090 \

and


    -e WEBUI_PORT=8090 \

If you appreciate my work, then please consider buying me a beer :D

PayPal donation

Documentation | Support forum

Install binhex-qbittorrent on Unraid in a few clicks.

Find binhex-qbittorrent in Community Apps on your Unraid server, review the template, and click Install. Unraid handles the Docker app or plugin setup from the published template.

Open the Apps tab on your Unraid server Search Community Apps for binhex-qbittorrent Review the template variables and paths Click Install

Categories

Download Statistics

20,964
Total Downloads
1,881
This Month
3,047
Avg / Month

Total Downloads Over Time

Loading chart...

Related apps

Explore more like this

Explore all

Details

Repository
ghcr.io/binhex/arch-qbittorrent
Last Updated2026-06-16
First Seen2025-06-18

Runtime arguments

Web UI
http://[IP]:[PORT:8080]
Network
bridge
Shell
bash
Privileged
true
Extra Params
--restart=unless-stopped

Template configuration

Port: Web InterfacePorttcp

This is the port for the Web UI for the application.

Target
8080
Default
8080
Port: Incoming port TCPPorttcp

This is the TCP incoming port when VPN_ENABLED is set to 'no'.

Target
58946
Default
58946
Port: Incoming port UDPPortudp

This is the UDP incoming port when VPN_ENABLED is set to 'no'.

Target
58946
Default
58946
Path: /configPathrw

This is the container path to your configuration files, e.g. databases, configuration files, logs etc.

Target
/config
Default
/mnt/user/appdata/qbittorrent
Path: /dataPathrw

This is the container path to your downloaded files or user created content.

Target
/data
Variable: GLUETUN_INCOMING_PORTVariable

Specify whether to attempt to identify and configure the applications listening port when connected to the gluetun network.

Target
GLUETUN_INCOMING_PORT
Default
no|yes
Variable: GLUETUN_CONTROL_SERVER_PORTVariable

Specify the port for the gluetun HTTP Control Server.

Target
GLUETUN_CONTROL_SERVER_PORT
Default
8000
Variable: GLUETUN_CONTROL_SERVER_USERNAMEVariable

Specify the username for the gluetun HTTP Control Server

Target
GLUETUN_CONTROL_SERVER_USERNAME
Default
controlserver
Variable: GLUETUN_CONTROL_SERVER_PASSWORDVariable

Specify the password for the gluetun HTTP Control Server

Target
GLUETUN_CONTROL_SERVER_PASSWORD
Default
controlserver
Variable: QBITTORRENT_WEBUI_USERVariable

Specify the WebUI username for qBittorrent. Leave as 'admin' unless you changed it.

Target
QBITTORRENT_WEBUI_USER
Default
admin
Variable: QBITTORRENT_WEBUI_PASSWORDVariable

Specify the WebUI password for qBittorrent. If left empty, a random password will be auto-generated and logged once. IMPORTANT: If you change the password here after qBittorrent has already started, you must also change it inside qBittorrent's WebUI preferences.

Target
QBITTORRENT_WEBUI_PASSWORD
Variable: WEBUI_PORTVariable

Specify the port the application will listen on - IMPORTANT: If you change this value then you will also need to delete and re-create the port mapping to match.

Target
WEBUI_PORT
Default
8080
Variable: DEBUGVariable

Specify whether you want to enable debug logging, useful when diagnosing gluetune related issues.

Target
DEBUG
Default
no|yes
Variable: ENABLE_HEALTHCHECKVariable

Enable or disable healthchecks.

Target
ENABLE_HEALTHCHECK
Default
yes|no
Variable: HEALTHCHECK_COMMANDVariable

The command or script to execute, if not specified then the script healthcheck.sh will be used (process, dns and https checking).

Target
HEALTHCHECK_COMMAND
Variable: HEALTHCHECK_ACTIONVariable

The action to execute if the healthcheck command returns a non zero exit code, if not specified the action will be 'exit 1', if you want the container to exit on failure then set the action to 'kill 1'.

Target
HEALTHCHECK_ACTION
Variable: HEALTHCHECK_HOSTNAMEVariable

The hostname used when performing HTTPS and DNS healthchecking.

Target
HEALTHCHECK_HOSTNAME
Default
google.com
Variable: PUIDVariable

User ID for the running container.

Target
PUID
Default
99
Variable: PGIDVariable

Group ID for the running container.

Target
PGID
Default
100
Variable: UMASKVariable

UMASK for the running container.

Target
UMASK
Default
000