qbittorrent-nox
Official qbittorrent-nox docker image
1M+
Repository on Docker Hub: https://hub.docker.com/r/qbittorrentofficial/qbittorrent-nox
Repository on GitHub: https://github.com/qbittorrent/docker-qbittorrent-nox
If the problem is related to Docker, please report it to this repository:
https://github.com/qbittorrent/docker-qbittorrent-nox/issues
If the problem is with qBittorrent, please report the issue to its main repository:
https://github.com/qbittorrent/qBittorrent/issues
Prerequisites
In order to run this image you will need Docker installed: https://docs.docker.com/get-docker/
If you don't need the GUI, you can just install Docker Engine: https://docs.docker.com/engine/install/
It is also recommended to install Docker Compose as it can simplify the process significantly: https://docs.docker.com/compose/install/
Download this repository
You can either git clone this repository or download a .zip of it: https://github.com/qbittorrent/docker-qbittorrent-nox/archive/refs/heads/main.zip
Edit Docker environment file
If you are using Docker Stack, refer to docker-stack.yml file as an example.
It is an almost ready-to-use configuration, though a few variables need to be filled in. Make sure you read the following steps as they largely share the same concept.
If you are not using Docker Compose you can skip editing the environment file. However, the variables presented below are crucial for later steps, make sure you understand them.
Find and open the .env file in the repository you cloned (or the .zip archive you downloaded).
There are a few variables that you must take care of before you can run the image.
You can find the meanings of these variables in the following section. Make sure you understand every one of them.
QBT_LEGAL_NOTICE confirm only if you have read the legal notice. You can find
the legal notice here.QBT_VERSION 4.4.5-1 is a valid entry. You can find all tagged versions here. latest to use the latest stable release of qBittorrent. alpha to get the weekly build. lt2 variation is available which uses libtorrent v2.0.x. However, users have reported memory/performance issues. Use at your own risk!QBT_TORRENTING_PORT 6881 if value is not set.QBT_WEBUI_PORT 8080 if value is not set.There are some paths involved:
<your_path>/config <your_path>/downloads Running the image
If using Docker (not Docker Compose), edit the variables and run:
export \
QBT_LEGAL_NOTICE=<put_confirm_here> \
QBT_VERSION=latest \
QBT_TORRENTING_PORT=6881 \
QBT_WEBUI_PORT=8080 \
QBT_CONFIG_PATH="<your_path>/config" \
QBT_DOWNLOADS_PATH="<your_path>/downloads"
docker run \
-t \
--name qbittorrent-nox \
--read-only \
--rm \
--stop-timeout 1800 \
--tmpfs /tmp \
-e QBT_LEGAL_NOTICE \
-e QBT_TORRENTING_PORT \
-e QBT_WEBUI_PORT \
-p "$QBT_TORRENTING_PORT":"$QBT_TORRENTING_PORT"/tcp \
-p "$QBT_TORRENTING_PORT":"$QBT_TORRENTING_PORT"/udp \
-p "$QBT_WEBUI_PORT":"$QBT_WEBUI_PORT"/tcp \
-v "$QBT_CONFIG_PATH":/config \
-v "$QBT_DOWNLOADS_PATH":/downloads \
qbittorrentofficial/qbittorrent-nox:${QBT_VERSION}
If using Docker Compose:
docker compose up
A few notes:
ghcr.io/qbittorrent/docker-qbittorrent-nox:${QBT_VERSION}
for the image path.qbittorrent-nox by appending them to the end of docker run ... command.
If using Docker Compose, modify the command: array in docker-compose.yml.--stop-timeout 1800 (or stop_grace_period: 30m when using Docker Compose).UTC).
You can set the environment variable TZ to your preferred value.qbittorrent-nox process by setting
environment variables PUID and PGID respectively. By default they are both set to 1000. --read-only flag (when using Docker) or set
read_only: false (when using Docker Compose) as these settings are incompatible with each other.qbittorrent-nox process by setting the
environment variable PAGID. For example: 10000,10001, this will set the process to be in
two (secondary) groups 10000 and 10001. By default there is no additional group. --read-only flag (when using Docker) or set
read_only: false (when using Docker Compose) as they are incompatible with it.qbittorrent-nox process by setting the
environment variable UMASK. By default it uses the default from Alpine Linux.docker run --entrypoint /bin/cat --rm qbittorrentofficial/qbittorrent-nox:latest /sbom.txt
Then you can login to qBittorrent-nox at: http://<your_docker_host_address>:8080
admin/adminadmin.docker logs qbittorrent-nox to show the logs.After logging in, don't forget to change the password to something else!
To change it in WebUI: 'Tools' menu -> 'Options...' -> 'Web UI' tab -> 'Authentication'
Stopping container
When using Docker (not Docker Compose):
docker stop qbittorrent-nox
When using Docker Compose:
docker compose down
Refer to manual_build folder.
To attach gdb to the running qbittorrent-nox process, follow the steps below:
Before you start the container
--read-only as it will need additional packages within the container. --cap-add=SYS_PTRACE to docker run argument list. Start the container
Drop into container
# to find container id
docker ps
# drop into container
docker exec -it <container_id> /bin/sh
Install packages
apk add \
gdb \
musl-dbg
Attach gdb to the running process
# to find PID of qbittorrent-nox
ps -a
# attach debugger
gdb -p <PID>
Content type
Image
Digest
sha256:155bd6551…
Size
134.3 MB
Last updated
3 days ago
docker pull qbittorrentofficial/qbittorrent-nox:alpha