qbittorrent

 

 


qbittorrent - docker

 

好處

  • easy user mappings (PGID, PUID)
  • custom base image with s6 overlay

 


WebUI

 

The webui is at http://<your-ip>:8080

Default login: admin/adminadmin

 


docker-compose

 

version: "2.1"
services:
  qbittorrent:
    image: lscr.io/linuxserver/qbittorrent:latest
    container_name: qbittorrent
    environment:
      - PUID=1000
      - PGID=1000
      - TZ=Asia/Hong_Kong
      - WEBUI_PORT=8080
    volumes:
      - /volume1/qBittorrent/config:/config
      - /volume1/qBittorrent/downloads:/downloads
    ports:
      - 8080:8080
      - 6881:6881
      - 6881:6881/udp
    restart: unless-stopped

Notes

[1] WEBUI_PORT

WEBUI_PORT 必須與 -p 對應

-p 8090:8090 and -e WEBUI_PORT=8090

[2] PUID & PGID

grep qbittorrent /etc/passwd

qbittorrent:x:1031:100

grep abc /etc/passwd                                       

abc:x:1031:100::/config:/bin/false

synology docker puid pgid

Best practice is to create a user for that specific container and give that user read and write access to the shared folder it needs.

Then you use the user id and group id of that user when setting up the container.

 


ipfilter

 

Log File Location: /config/qBittorrent/logs

[1] load 正確 format 的 ipfilter (要用 .dat 版, 不能用 .p2p 版)

成功的log

(N) 2023-05-23T16:28:57 - Successfully parsed the IP filter file. Number of rule
s applied: 221478

失敗的log

(C) 2023-05-23T16:18:11 - IP filter line 1 is malformed.                        
...                      
(C) 2023-05-23T16:18:11 - IP filter line 5 is malformed.                        
(C) 2023-05-23T16:18:11 - 221473 extra IP filter parsing errors occurred.       
(N) 2023-05-23T16:18:11 - Successfully parsed the IP filter file. Number of rules applied: 0   

[2] network type

network of “host” type instead of “bridge”

synology docker bridge vs host

Containers started with --network=host use the network namespace of the host network and

as such behave network-wise as every other process running on the host.

more_info

 

Creative Commons license icon Creative Commons license icon