qbittorrent
部署方式如下,选择其一就可。
docker cli 部署
docker compose 部署
1 2 3 4 5 6 7 8 9 10 11 12 13 14
| docker run -d \ --name=qbittorrent \ -e PUID=1000 \ -e PGID=1000 \ -e TZ=Etc/UTC \ -e WEBUI_PORT=7070 \ -e TORRENTING_PORT=6881 \ -p 7070:8080 \ -p 6881:6881 \ -p 6881:6881/udp \ -v /path/to/qbittorrent/appdata:/config \ -v /path/to/downloads:/downloads `#optional` \ --restart unless-stopped \ lscr.io/linuxserver/qbittorrent:latest
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
| --- services: qbittorrent: image: lscr.io/linuxserver/qbittorrent:latest container_name: qbittorrent environment: - PUID=1000 - PGID=1000 - TZ=Etc/UTC - WEBUI_PORT=7070 - TORRENTING_PORT=6881 volumes: - /path/to/qbittorrent/appdata:/config - /path/to/downloads:/downloads #optional ports: - 7070:8080 - 6881:6881 - 6881:6881/udp restart: unless-stopped
|
WEBUI_PORT=7070
-p 7070:8080
以上两项参数的 7070
端口可以自定义,但是WEBUI的访问端口要保持跟自己定义的端口一直!
/path/to/qbittorrent/appdata
应用文件,映射自己的文件夹路径
/path/to/downloads
下载的目录,映射自己的文件夹路径
安装完毕后访问http://IP:7070
操作!
WEB访问不了解决方式:
找到qbittorrent.conf
文件结尾添加以下两项参数
1 2
| WebUI\HostHeaderValidation=false WebUI\HTTPS\Enabled=false
|