Sign in

qbittorrent

5.3.1_v2.1.3-ls13

The Qbittorrent is a bittorrent client programmed in C++ / Qt that uses libtorrent (sometimes called libtorrent-rasterbar) by Arvid Norberg.

docker pull ghcr.io/linuxserver-playground/qbittorrent:latest
5.3.1_v2.1.3-ls13 · amd64 · CI screenshot · test report

Quick start · configure#

Pick the optional settings and mods you want, set your paths, ports and values, then copy the result.

Image
Identity

The user the application runs as and its timezone.

Required
for changing the port of the web UI, see below for explanation
for changing the port of tcp/udp connection, see below for explanation
Contains all relevant configuration files.
WebUI
tcp connection port
udp connection port
Optional settings4

Tick what you need; it is added to every output with its value.

Mods

0 for qbittorrent, 0 universal mods suggested for it, and 13 other universal mods. Ticked mods join one DOCKER_MODS value in the order you tick them.

---
services:
  qbittorrent:
    image: ghcr.io/linuxserver-playground/qbittorrent:latest
    container_name: qbittorrent
    environment:
      - PUID=1000
      - PGID=1000
      - TZ=Etc/UTC
      - WEBUI_PORT=8080
      - TORRENTING_PORT=6881
    volumes:
      - /path/to/qbittorrent/appdata:/config
    ports:
      - 8080:8080
      - 6881:6881
      - 6881:6881/udp
    restart: unless-stopped

Required settings only. Tick optional settings and mods to add them.

  • Replace the /path/to folders with real folders on your host; they are created if missing.

Install on …

Adding a store to your platform

Version tags#

TagLatest buildBuiltTests
:latestStable qbittorrent releases using libtorrent v2branch master · stable5.3.1_v2.1.3-ls13amd64 · arm64 passed
:libtorrentv1Stable qbittorrent releases using libtorrent v1branch libtorrentv1 · prereleaselibtorrentv1-5.3.1_v1.2.20-ls12amd64 · arm64 passed

Architectures#

Pulling :latest picks the right one for your host automatically.

  • x86_64amd64-latest
  • arm64arm64v8-latest

Inside the latest image#

ghcr.io/linuxserver-playground/qbittorrent:5.3.1_v2.1.3-ls13

Explore this build
Base image
ghcr.io/linuxserver-playground/baseimage-alpine:3.24
Upstream version
5.3.1_v2.1.3
amd64 compressed
98.3 MB · 10 layers
arm64 compressed
96.9 MB · 10 layers
amd64 packages
85 · Alpine Linux v3.24
arm64 packages
85 · Alpine Linux v3.24
Tests
passed
Built
Reason
weekly package check

In the fleet#

Live branches, their latest release, upstream version and next scheduled check.

qbittorrent on the fleet board

live branchesloading…

Branch → tagLast buildReleasedUpstreamDriftNext checkFlags
libtorrentv1 → :libtorrentv1success
5.3.1_v1.2.20
? unknown––
master → :latestsuccess
5.3.1_v2.1.3
? unknown––

Application setup#

The web UI is at <your-ip>:8080 and a temporary password for the admin user will be printed to the container log on startup.

You must then change username/password in the web UI section of settings. If you do not change the password a new one will be generated every time the container starts.

If you are running a very old (3.x) kernel you may run into this issue which can be worked around using this method

WEBUI_PORT variable

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

For example, to set the port to 8123 you need to set -p 8123:8123 and -e WEBUI_PORT=8123

TORRENTING_PORT

A bittorrent client can be an active or a passive node. Running your client as an active node has the advantage of being able to connect to both active and passive peers, and can potentially increase the number of incoming connections. This requires an open port on the host machine which might differ from container’s internal one.

Similarly to the WEBUI_PORT, to set the port to 6887 you need to pass -p 6887:6887, -p 6887:6887/udp and -e TORRENTING_PORT=6887 arguments to Docker.

Parameters#

Ports#
PortFunctionRequired
8080:8080WebUIrequired
6881:6881tcp connection portrequired
6881:6881/udpudp connection portrequired
Environment variables#
VariableFunctionRequired
PUID=1000User IDrequired
PGID=1000Group IDrequired
TZ=Etc/UTCTimezonerequired
WEBUI_PORT=8080for changing the port of the web UI, see below for explanationrequired
TORRENTING_PORT=6881for changing the port of tcp/udp connection, see below for explanationrequired
Volumes#
PathFunctionRequired
/configContains all relevant configuration files.required
/downloadsLocation of downloads on disk.optional
Other settings#
SettingFunctionRequired
stop_grace_period: 10sIf you have a large number of torrents you may need to increase the container stop timeout to ensure a clean shutdown.optional

Read-Only Operation#

This image can be run with a read-only container filesystem. For details please read the docs.

Non-Root Operation#

This image can be run with a non-root user. For details please read the docs.

Environment variables from files (Docker secrets)#

You can set any environment variable from a file by using a special prepend FILE__.

As an example:

-e FILE__MYVAR=/run/secrets/mysecretvariable

Will set the environment variable MYVAR based on the contents of the /run/secrets/mysecretvariable file.

Umask for running applications#

For all of our images we provide the ability to override the default umask settings for services started within the containers using the optional -e UMASK=022 setting. Keep in mind umask is not chmod it subtracts from permissions based on it’s value it does not add. Please read up here before asking for support.

User / Group Identifiers#

When using volumes (-v flags), permissions issues can arise between the host OS and the container, we avoid this issue by allowing you to specify the user PUID and group PGID.

Ensure any volume directories on the host are owned by the same user you specify and any permissions issues will vanish like magic.

In this instance PUID=1000 and PGID=1000, to find yours use id your_user as below:

id your_user

Example output:

uid=1000(your_user) gid=1000(your_user) groups=1000(your_user)

Updating Info#

Most of our images are static, versioned, and require an image update and container recreation to update the app inside. With some exceptions (noted in the relevant readme.md), we do not recommend or support updating apps inside the container. Please consult the Application Setup section above to see if it is recommended for the image.

Below are the instructions for updating containers:

Via Docker Compose

  • Update images:

    • All images:

      docker-compose pull
    • Single image:

      docker-compose pull qbittorrent
  • Update containers:

    • All containers:

      docker-compose up -d
    • Single container:

      docker-compose up -d qbittorrent
  • You can also remove the old dangling images:

    docker image prune

Via Docker Run

  • Update the image:

    docker pull ghcr.io/linuxserver-playground/qbittorrent:latest
  • Stop the running container:

    docker stop qbittorrent
  • Delete the container:

    docker rm qbittorrent
  • Recreate a new container with the same docker run parameters as instructed above (if mapped correctly to a host folder, your /config folder and settings will be preserved)

  • You can also remove the old dangling images:

    docker image prune

Image Update Notifications - Diun (Docker Image Update Notifier)

Tip

We recommend Diun for update notifications. Other tools that automatically update containers unattended are not recommended or supported.

Building locally#

If you want to make local modifications to these images for development purposes or just to customize the logic:

git clone https://github.com/linuxserver-playground/docker-qbittorrent.git
cd docker-qbittorrent
docker build \
  --no-cache \
  --pull \
  -t ghcr.io/linuxserver-playground/qbittorrent:latest .

The ARM variants can be built on x86_64 hardware and vice versa using ghcr.io/linuxserver/qemu-static

docker run --rm --privileged ghcr.io/linuxserver/qemu-static --reset

Once registered you can define the dockerfile to use with -f Dockerfile.aarch64.

Every push builds and tests the image with the shared workflow in linuxserver-playground/workflows; every build’s tests, screenshots and package changes are on the image’s builds on the website.

Builds#

The newest five builds per branch, each with its CI report; 15 older releases are on GitHub, listed below.

TagBuiltReasonChangeResultSize
5.3.1_v2.1.3-ls13master · 39e1b8ceweekly package checkbasesuccess98.3 MB amd6496.9 MB arm64
libtorrentv1-5.3.1_v1.2.20-ls12libtorrentv1 · 471ce674weekly package checkbasesuccess97.2 MB amd6495.9 MB arm64
libtorrentv1-5.3.1_v1.2.20-ls11libtorrentv1 · b117afd4upstream checkmixedsuccess97.2 MB amd6496.0 MB arm64
5.3.1_v2.1.3-ls12master · 6ac67525upstream checkmixedsuccess98.4 MB amd6497.0 MB arm64
5.3.0_v2.1.3-ls11master · b49e1f6bupstream checkmixedsuccess98.1 MB amd6496.7 MB arm64
libtorrentv1-5.3.0_v1.2.20-ls10libtorrentv1 · 8266f3e8weekly package checkbasesuccess96.8 MB amd6495.5 MB arm64
libtorrentv1-5.3.0_v1.2.20-ls9libtorrentv1 · d5e49430weekly package checkbasesuccess96.6 MB amd6495.4 MB arm64
5.3.0_v2.1.2-ls10master · 7c5479e6weekly package checkbasesuccess97.9 MB amd6496.5 MB arm64
5.3.0_v2.1.2-ls9master · 6a740224weekly package checkbasesuccess97.9 MB amd6496.5 MB arm64
libtorrentv1-5.3.0_v1.2.20-ls8libtorrentv1 · 7cf37392weekly package checkbasesuccess96.6 MB amd6495.4 MB arm64
Older releases15Release, run record and run on GitHub
Older releases of qbittorrent, without a page on this site
TagBuiltLinks
5.3.0_v2.1.2-ls8masterRelease 5.3.0_v2.1.2-ls8 on GitHub (opens in a new tab)run.json of 5.3.0_v2.1.2-ls8Run that built 5.3.0_v2.1.2-ls8, on GitHub (opens in a new tab)
libtorrentv1-5.3.0_v1.2.20-ls7libtorrentv1Release libtorrentv1-5.3.0_v1.2.20-ls7 on GitHub (opens in a new tab)run.json of libtorrentv1-5.3.0_v1.2.20-ls7Run that built libtorrentv1-5.3.0_v1.2.20-ls7, on GitHub (opens in a new tab)
5.3.0_v2.1.2-ls7masterRelease 5.3.0_v2.1.2-ls7 on GitHub (opens in a new tab)run.json of 5.3.0_v2.1.2-ls7Run that built 5.3.0_v2.1.2-ls7, on GitHub (opens in a new tab)
libtorrentv1-5.3.0_v1.2.20-ls6libtorrentv1Release libtorrentv1-5.3.0_v1.2.20-ls6 on GitHub (opens in a new tab)run.json of libtorrentv1-5.3.0_v1.2.20-ls6Run that built libtorrentv1-5.3.0_v1.2.20-ls6, on GitHub (opens in a new tab)
5.3.0_v2.1.2-ls6masterRelease 5.3.0_v2.1.2-ls6 on GitHub (opens in a new tab)run.json of 5.3.0_v2.1.2-ls6Run that built 5.3.0_v2.1.2-ls6, on GitHub (opens in a new tab)
libtorrentv1-5.3.0_v1.2.20-ls5libtorrentv1Release libtorrentv1-5.3.0_v1.2.20-ls5 on GitHub (opens in a new tab)run.json of libtorrentv1-5.3.0_v1.2.20-ls5Run that built libtorrentv1-5.3.0_v1.2.20-ls5, on GitHub (opens in a new tab)
5.3.0_v2.1.2-ls5masterRelease 5.3.0_v2.1.2-ls5 on GitHub (opens in a new tab)run.json of 5.3.0_v2.1.2-ls5Run that built 5.3.0_v2.1.2-ls5, on GitHub (opens in a new tab)
libtorrentv1-5.3.0_v1.2.20-ls4libtorrentv1Release libtorrentv1-5.3.0_v1.2.20-ls4 on GitHub (opens in a new tab)run.json of libtorrentv1-5.3.0_v1.2.20-ls4Run that built libtorrentv1-5.3.0_v1.2.20-ls4, on GitHub (opens in a new tab)
5.3.0_v2.1.2-ls4masterRelease 5.3.0_v2.1.2-ls4 on GitHub (opens in a new tab)run.json of 5.3.0_v2.1.2-ls4Run that built 5.3.0_v2.1.2-ls4, on GitHub (opens in a new tab)
5.3.0_v2.1.2-ls3masterRelease 5.3.0_v2.1.2-ls3 on GitHub (opens in a new tab)run.json of 5.3.0_v2.1.2-ls3Run that built 5.3.0_v2.1.2-ls3, on GitHub (opens in a new tab)
libtorrentv1-5.3.0_v1.2.20-ls3libtorrentv1Release libtorrentv1-5.3.0_v1.2.20-ls3 on GitHub (opens in a new tab)run.json of libtorrentv1-5.3.0_v1.2.20-ls3Run that built libtorrentv1-5.3.0_v1.2.20-ls3, on GitHub (opens in a new tab)
5.3.0_v2.1.2-ls2masterRelease 5.3.0_v2.1.2-ls2 on GitHub (opens in a new tab)run.json of 5.3.0_v2.1.2-ls2Run that built 5.3.0_v2.1.2-ls2, on GitHub (opens in a new tab)
libtorrentv1-5.3.0_v1.2.20-ls2libtorrentv1Release libtorrentv1-5.3.0_v1.2.20-ls2 on GitHub (opens in a new tab)run.json of libtorrentv1-5.3.0_v1.2.20-ls2Run that built libtorrentv1-5.3.0_v1.2.20-ls2, on GitHub (opens in a new tab)
5.3.0_v2.1.2-ls1masterRelease 5.3.0_v2.1.2-ls1 on GitHub (opens in a new tab)run.json of 5.3.0_v2.1.2-ls1Run that built 5.3.0_v2.1.2-ls1, on GitHub (opens in a new tab)
libtorrentv1-5.3.0_v1.2.20-ls1libtorrentv1Release libtorrentv1-5.3.0_v1.2.20-ls1 on GitHub (opens in a new tab)run.json of libtorrentv1-5.3.0_v1.2.20-ls1Run that built libtorrentv1-5.3.0_v1.2.20-ls1, on GitHub (opens in a new tab)

Mods#

Add a mod with DOCKER_MODS=<image>; separate several with |.

All mods for qbittorrent

No mod targets qbittorrent specifically; the 13 universal mods work with every image.

Reverse proxy#

qbittorrent listens on http://qbittorrent:8080.

What you named the qbittorrent container; SWAG resolves it on the shared network.

Uncomments the matching include lines; API locations stay open so client apps keep working.

  • Save as /config/nginx/proxy-confs/qbittorrent.subdomain.conf in SWAG (drop the .sample) and restart SWAG.
  • Your DNS needs a record for qbittorrent.yourdomain.com (a CNAME to the domain, or a wildcard), and SWAG's SUBDOMAINS must cover it.
  • The qbittorrent container and SWAG must share a user-defined Docker network so the name resolves.
## Version 2026/11/27
# make sure that your qbittorrent container is named qbittorrent
# make sure that your dns has a cname set for qbittorrent

server {
    listen 443 ssl;
#    listen 443 quic;
    listen [::]:443 ssl;
#    listen [::]:443 quic;

    server_name qbittorrent.*;

    include /config/nginx/ssl.conf;

    client_max_body_size 0;

    # enable for ldap auth (requires ldap-location.conf in the location block)
    #include /config/nginx/ldap-server.conf;

    # enable for Authelia (requires authelia-location.conf in the location block)
    #include /config/nginx/authelia-server.conf;

    # enable for Authentik (requires authentik-location.conf in the location block)
    #include /config/nginx/authentik-server.conf;

    # enable for Tinyauth (requires tinyauth-location.conf in the location block)
    #include /config/nginx/tinyauth-server.conf;

    location / {
        # enable the next two lines for http auth
        #auth_basic "Restricted";
        #auth_basic_user_file /config/nginx/.htpasswd;

        # enable for ldap auth (requires ldap-server.conf in the server block)
        #include /config/nginx/ldap-location.conf;

        # enable for Authelia (requires authelia-server.conf in the server block)
        #include /config/nginx/authelia-location.conf;

        # enable for Authentik (requires authentik-server.conf in the server block)
        #include /config/nginx/authentik-location.conf;

        # enable for Tinyauth (requires tinyauth-server.conf in the server block)
        #include /config/nginx/tinyauth-location.conf;

        include /config/nginx/proxy.conf;
        include /config/nginx/resolver.conf;
        set $upstream_app qbittorrent;
        set $upstream_port 8080;
        set $upstream_proto http;
        proxy_pass $upstream_proto://$upstream_app:$upstream_port;

    }
}

Default sample.

Source: linuxserver-playground.github.io/hub/api/v1/catalog/qbittorrent/proxy.json

Changelog#

  1. Rebase to Alpine 3.24.

  2. Switch to static builds for parity with libtorrentv1 branch. Rebase to Alpine 3.23.

  3. Restore qbittorrent-cli as it now supports openssl 3.

  4. Remove qbittorrent-cli as it still requires openssl 1.1 which is EOL.

  5. Only set/override torrenting port if the optional env var is set.

  6. Add torrenting port support.

  7. Remove obsolete compat packages.

  8. Only pull stable releases of qbittorrent-cli.

37 earlier entries
  1. Install unrar from linuxserver repo (opens in a new tab).
  2. Bump unrar to 6.2.10.
  3. Deprecate armhf as per https://www.linuxserver.io/armhf (opens in a new tab).
  4. Bump unrar to 6.2.8.
  5. Add qt6-qtbase-sqlite to support SQLite database for resume files.
  6. Add openssl1.1-compat for qbittorrent-cli.
  7. Add libtorrentv1 branch.
  8. Rebase to Alpine Edge again to follow latest releases.
  9. Bump unrar to 6.1.7.
  10. Rebase to Alpine 3.16 from edge.
  11. Fetch qbitorrent-cli from upstream repo.
  12. Add unrar, 7zip, and qbitorrent-cli.
  13. Add python for search plugin support.
  14. Rebase to Alpine Edge, install from Alpine repos.
  15. Add jq to build-stage
  16. Rebase to Alpine, build from source.
  17. Deprecate unstable branch.
  18. Rebase to focal.
  19. Deprecate UMASK_SET in favor of UMASK in baseimage, see above for more information.
  20. Stop creating /config/data directory on startup
  21. Fix adding search engine plugin
  22. Add qbitorrent-cli for processing scripts.
  23. Switching to new Base images, shift to arm32v7 tag.
  24. Rebase to Ubuntu, add multi arch and pipeline logic.
  25. Use buildstage type build, bump qbitorrent to 4.1.3.
  26. Rebase to alpine 3.8, bump libtorrent to 1.1.9 and qbitorrent to 4.1.2.
  27. Bump qbitorrent to 4.1.1.
  28. Bump libtorrent to 1.1.7.
  29. Bump qbitorrent to 4.0.4 and libtorrent to 1.1.6.
  30. Initial Release.
  31. Deprecate cpu_core routine lack of scaling.
  32. Update to v4.0.3.
  33. Rebase to alpine 3.7
  34. Update to v4.0.2.
  35. Update to v4 and use cpu_core routine to speed up builds.
  36. Bump to 3.3.16, Add WEBUI_PORT variable and notes to README to allow changing port of webui.
  37. Initial Release.

Support#

Questions about running qbittorrent? Start with the documentation and the community; open an issue for bugs.

  • Shell access whilst the container is running:

    docker exec -it qbittorrent /bin/bash
  • To monitor the logs of the container in realtime:

    docker logs -f qbittorrent
  • Container version number:

    docker inspect -f '{{ index .Config.Labels "build_version" }}' qbittorrent
  • Image version number:

    docker inspect -f '{{ index .Config.Labels "build_version" }}' ghcr.io/linuxserver-playground/qbittorrent:latest

Community project

Improve qbittorrent

This image is kept up by volunteers, and you can be one of them. You don't need to know how the pipeline works: point an AI agent at the harness and describe what you want. It reproduces the problem in your Docker, tests the change and drafts the pull request for you to check.

Ask your agent

  • Something is wrong with the qbittorrent image: <what you saw>. Reproduce it, fix it and draft the PR.
  • Add <package> to the qbittorrent image, test it and draft the PR.
  • Make a mod for qbittorrent that <what you need>, and test it.

Contributing an image Every way to help Get the harness (opens in a new tab)

Related

Browse all

deluge

2.2.0-ls7

Deluge is a lightweight, Free Software, cross-platform BitTorrent client. * Full Encryption * WebUI * Plugin System * Much more...

0 GitHub starsalpinearm64

flexget

v3.22.14-ls10

Flexget is a multipurpose automation tool for all of your media.

0 GitHub starsalpinearm64

nzbget

v26.3-ls12

Nzbget is a usenet downloader, written in C++ and designed with performance in mind to achieve maximum download speed by using very little system resources.

0 GitHub starsalpinearm64

pyload-ng

0.5.0b3.dev102-ls12

pyLoad is a Free and Open Source download manager written in Python and designed to be extremely lightweight, easily extensible and fully manageable via web.

0 GitHub starsalpinearm64