安装主体文件

这里是使用compose安装的,这个方便
compose配置文件如下:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# https://club.fnnas.com/forum.php?mod=viewthread&tid=2741&extra=page%3D1
version: "3"
services:
qbittorrent:
image: linuxserver/qbittorrent:4.6.6
container_name: qbittorrent
environment:
- PUID=0
- PGID=0
- TZ=Asia/Shanghai
- UMASK_SET=022
- WEBUI_PORT=6700 # Web UI端口
- TORRENTING_PORT=6701 # 监听端口,默认6881,修改为20000-65535区间值,下同
volumes:
- /vol1/1000/docker/qbittorrent/config:/config # docker 路径映射
- /vol1/1000/docker/qbittorrent/theme:/theme # 主题文件夹
- /vol1/1000/media/qbittorrent/downloads:/downloads # 下载文件夹
- /vol1/1000/media/qbittorrent/downloads:/watch # 监控文件夹
ports:
- 6700:6700 # 同上面Web UI端口一致
- 6701:6701
- 6701:6701/udp
restart: unless-stopped

或者使用host模式

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# https://club.fnnas.com/forum.php?mod=viewthread&tid=2741&extra=page%3D1
version: "3"
services:
qbittorrent:
image: linuxserver/qbittorrent:4.6.6
container_name: qbittorrent
environment:
- PUID=0
- PGID=0
- TZ=Asia/Shanghai
- UMASK_SET=022
- WEBUI_PORT=6700 # Web UI端口
- TORRENTING_PORT=6701 # 监听端口,默认6881,修改为20000-65535区间值,下同
volumes:
- /vol1/1000/docker/qbittorrent/config:/config # docker 路径映射
- /vol1/1000/docker/qbittorrent/theme:/theme # 主题文件夹
- /vol1/1000/media/qbittorrent/downloads:/downloads # 下载文件夹
- /vol1/1000/media/qbittorrent/downloads:/watch # 监控文件夹
restart: unless-stopped
network_mode: host

然后启动,默认账号为admin,密码需要到运行日志里面找
打开容器,找到运行日志,有类似于下面的则说明创建成功了

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17

******** Information ********

To control qBittorrent, access the WebUI at: http://localhost:6700



The WebUI administrator username is: admin

The WebUI administrator password was not set. A temporary password is provided for this session: 4X72ucMPJ

You should set your own password in program preferences.

Connection to localhost (::1) 6700 port [tcp/*] succeeded!

[ls.io-init] done.

UI 主题

vuetorrent皮肤地址https://github.com/VueTorrent/VueTorrent/releases/tag/v2.14.1

下载到本地,然后传到qbittorrent配置的theme文件夹路径下

在页面配置中选择WEB_UI,然后填写路径/theme/vuetorrent