https://hub.docker.com/r/linuxserver/qbittorrent
https://hub.docker.com/r/dperson/samba
qbittorrent BT下载
[root@rmaster01 qbittorrent]# cat docker-compose.yaml
version: "2.1"
services:
qbittorrent:
image: linuxserver/qbittorrent
container_name: qbittorrent
environment:
- PUID=1000
- PGID=1000
- TZ=Europe/London
- UMASK_SET=022
- WEBUI_PORT=8080
volumes:
- /path/to/appdata/config:/config
- /path/to/downloads:/downloads
ports:
- 6881:6881
- 6881:6881/udp
- 8080:8080
restart: unless-stopped
[root@rmaster01 qbittorrent]#docker-compose up -d
访问地址
http://192.168.31.130:8080/
用户名:admin
密码:adminadmin
修改为中文界面
下载文件存档路径
/path/to/downloads
SAMBA共享
使用docker运行samba共享服务挂载下载目录/path/to/downloads
docker run -it -p 139:139 -p 445:445 --name samba -d --rm \
-v /path/to/downloads:/mount dperson/samba \
-u "liwm;123" \
-s "liwm;/mount/;yes;no;yes;all;all;all" \
-w "WORKGROUP" \
-g "force user= liwm" \
-g "guest account= liwm"
-v 代表需要映射的目录, -u 代表目录的owner, -g 代表修改 smb.conf 配置文件的 global 配置。
[root@rmaster01 downloads]# docker ps |grep dperson/samba
e7fcadbdf418 dperson/samba "/sbin/tini -- /usr/…" 3 hours ago Up 3 hours (healthy) 0.0.0.0:139->139/tcp, 137-138/udp, 0.0.0.0:445->445/tcp samba
[root@rmaster01 downloads]# docker ps |grep linuxserver/qbittorrent
b9a748211cf6 linuxserver/qbittorrent "/init" 5 hours ago Up 5 hours 0.0.0.0:6881->6881/tcp, 0.0.0.0:8080->8080/tcp, 0.0.0.0:6881->6881/udp qbittorrent
[root@rmaster01 downloads]#