Install qBittorrent on TrueNAS Scale

Install qBittorrent on TrueNAS SCALE from a Docker Compose file, set up its download folders and permissions, and get it ready for Radarr and Sonarr.

A Mohammed Habib Sep 14, 2026 8 min read 85 views Updated Oct 24, 2026
Cover for Install qBittorrent on TrueNAS Scale

In this guide you'll install qBittorrent on TrueNAS SCALE and reach it from your browser. It runs in the background on your NAS, saves downloads straight to your storage pool, and becomes the download client that Radarr and Sonarr hand work to later in this series.

What you need

  • A machine running TrueNAS SCALE 24.10 (Electric Eel) or newer, with at least one storage pool. If you haven't installed it yet, start with my TrueNAS install guide.
  • The Apps service set up in TrueNAS (the first time you open Apps, TrueNAS asks you to pick a pool for it).
  • A computer on the same network with a web browser.
  • About 15 minutes.

This is the first post in a series. The others build on it:

  1. qBittorrent (this post)
  2. Prowlarr for indexers
  3. Radarr for movies
  4. Sonarr for TV
  5. Bazarr for subtitles

If you want the whole stack in one go, see the media stack install guide.

A few terms first

  • qBittorrent is a free, open-source BitTorrent client. The version used here has no desktop window; you control it through a web page instead (the "Web UI").
  • Container is a packaged app that runs isolated from the rest of the system. TrueNAS SCALE runs apps as Docker containers.
  • Image is the template a container is created from. We use lscr.io/linuxserver/qbittorrent:latest, maintained by LinuxServer.io.
  • Docker Compose / YAML is a short text file that describes a container: which image, which ports, which folders. TrueNAS can install an app straight from one.
  • Volume mount connects a folder on your NAS to a folder inside the container, so files written in the container actually land on your pool.
  • Dataset is a folder-like unit of storage in TrueNAS with its own permissions. Every pool is mounted under /mnt/<pool-name>.

At a glance

Platform TrueNAS SCALE (Electric Eel / Fangtooth)
Method Custom app from Docker Compose YAML
Image lscr.io/linuxserver/qbittorrent:latest
Web UI port 8080 (default, configurable)
Torrent port 6881 TCP/UDP (default, configurable)
Config folder /mnt/apps/qbittorrent/config → /config
Download folder /mnt/downloads → /downloads
License GPL-2.0

About the paths in this series. I use short example paths like /mnt/downloads and /mnt/apps/.... On your NAS the real path includes your pool name, for example /mnt/tank/downloads. Swap in your own paths everywhere you see these, and use the same ones in every post so the apps can find each other's files.

How the folders fit together

Getting the folders right is the only tricky part. qBittorrent writes to /downloads inside the container. The volume mount decides where that really is on your NAS.

PACKET ANALYSIS
Host path
/mnt/downloads
Container path
/downloads
Purpose
Where completed and in-progress torrents land
Permissions
Must be writable by the container's user (PUID=1000, PGID=1000)
Host path
/mnt/apps/qbittorrent/config
Container path
/config
Purpose
qBittorrent.conf, RSS feeds, session data
Permissions
Must persist across container recreation

The common mistake is mounting your NAS folder to a container path qBittorrent doesn't use. Then downloads go to the container's temporary layer and vanish when it's recreated:

PACKET ANALYSIS
Correct mount chain
Wrong mount chain

Step 1: Create the folders

Open a shell on the NAS. You can use System → Shell in the TrueNAS web UI, or SSH in. Then create the config folder:

sudo mkdir -p /mnt/apps/qbittorrent/config

Make sure your download location exists too. Creating it as its own dataset (Datasets → Add Dataset) is the tidy way to do it.

Check: ls -ld /mnt/apps/qbittorrent/config /mnt/downloads should list both folders without a "No such file or directory" error.

Step 2: Give the container write access

The LinuxServer image runs as user ID 1000 and group ID 1000 (set by PUID and PGID below). That user needs to be able to write to both folders.

# Quick fix via CLI (if ACLs are disabled):
sudo chmod -R 775 /mnt/downloads
sudo chown -R 1000:1000 /mnt/downloads

# If ACLs are enabled (via TrueNAS UI):
# Datasets → /mnt/downloads → Edit Permissions
# Add ACL entry for user/group 1000 with Read/Write/Execute

Do the same for /mnt/apps/qbittorrent/config. If your files are owned by a different user, change PUID and PGID in the YAML to match that user's IDs instead.

Step 3: Install the app from YAML

  1. In the TrueNAS web UI, go to Apps → Discover Apps.
  2. Click the three-dot menu (⋮) and choose Install via YAML.
  3. Give the app a name, for example qbittorrent (lowercase letters, numbers and hyphens only).
  4. Paste this into the Custom Config field. Change TZ to your own time zone.
services:
  qbittorrent:
    image: lscr.io/linuxserver/qbittorrent:latest
    container_name: qbittorrent
    restart: unless-stopped
    environment:
      - PUID=1000
      - PGID=1000
      - TZ=Europe/London
      - WEBUI_PORT=8080
    ports:
      - 8080:8080
      - 6881:6881/tcp
      - 6881:6881/udp
    volumes:
      - /mnt/apps/qbittorrent/config:/config
      - /mnt/downloads:/downloads
  1. Click Save. TrueNAS pulls the image and starts the container.

Check: the app appears on the Apps page and its status changes to Running after a minute or so.

Step 4: Get the first password

The username is admin. The password is random and printed in the container log each time it starts, until you set your own. It is not adminadmin anymore.

Open the app on the Apps page, go to Workloads → View Logs, and look for the line with password. Or from the shell:

sudo docker logs qbittorrent 2>&1 | grep password

Step 5: Log in and set your own password

Browse to http://<nas-ip>:8080 and log in with admin and the password from the log. Replace <nas-ip> with your NAS's IP address.

Then open Tools → Options → Web UI and set a new password. Because the temporary password changes on every restart, do this right away.

Check: restart the app from the Apps page and log in with your new password.

Settings worth changing

Download folders

In Tools → Options → Downloads:

Setting Value
Default save path /downloads
Keep incomplete torrents in /downloads/incomplete
Copy .torrent files to /downloads/torrents (optional)

These are paths inside the container. /downloads is /mnt/downloads on your NAS, so that's where the files end up.

Check: add a legal test torrent (a Linux ISO works well) and confirm the file shows up in /mnt/downloads on the NAS.

Networking

The YAML above uses Docker's default bridge network: the container sits on its own private network, and only the ports you list under ports: are reachable from your LAN. For a home setup that's all you need. The Web UI is on port 8080 and incoming peers connect on 6881.

If you want more peers, forward port 6881 (TCP and UDP) on your router to the NAS. It's optional; downloads work without it.

Speed and seeding

Setting Suggested value Why
Global upload limit 0 (unlimited) or about 80% of your upload bandwidth Stops torrents from saturating your connection
Seeding ratio Whatever your tracker requires Some private trackers enforce minimum ratios

Troubleshooting

I can't find the password in the logs. The password only appears once per start. Restart the app, then check the logs again right away.

The Web UI says "Unauthorized" or won't load after I changed the port. The port has to match in three places: both sides of the ports: mapping and WEBUI_PORT. For example 8123:8123 with WEBUI_PORT=8123. LinuxServer's docs say this is needed for the Web UI's security checks.

Torrents show "Errored" or "Permission denied". The container user can't write to /mnt/downloads. Recheck Step 2, and make sure PUID/PGID match the folder's owner.

Files download but aren't in my dataset. Your volume mount doesn't match the save path. The save path in qBittorrent must start with /downloads, the container side of the mount.

I forgot my password. Stop the app, delete /mnt/apps/qbittorrent/config/qBittorrent/qBittorrent.conf, and start it again. A new temporary password appears in the logs. This also resets your other qBittorrent settings, so you'll need to redo the download folders.

Good to know

  • Updates aren't automatic. The :latest tag only means "newest when the image was pulled". Updating means pulling the new image and recreating the container. Your /config and /downloads folders aren't touched.
  • A VPN is a separate piece. To send torrent traffic through a VPN, people usually run a Gluetun container and route qBittorrent's network through it. That isn't a setting inside qBittorrent.
  • Don't change the container paths. The image expects /config and /downloads. Change the host side (left of the :) to suit your NAS, and leave the right side alone.

Next steps

Next, install Prowlarr to manage your indexers. Then Radarr and Sonarr will use this qBittorrent install as their download client. Keep your qBittorrent username and password handy for that.

Comments (0)

Join the discussion — sign in to comment.

Sign in

No comments yet — be the first to share your thoughts.

Related reading