如何使用 Docker 一键部署 qBittorrent

2025 年 1 月 22 日
 sn0wdr1am

分享一个自己封装的 qBittorrent 镜像,欢迎大家使用。

默认情况下,账号密码随机生成,非常安全。

您也可以参考项目地址文档,运行的时候,传入自己的账户密码。

开源项目地址: https://github.com/snowdreamtech/qbittorrent

docker 镜像托管在:

https://github.com/snowdreamtech/qbittorrent/pkgs/container/qbittorrent

https://quay.io/repository/snowdreamtech/qbittorrent

https://hub.docker.com/r/snowdreamtech/qbittorrent

alpine 版本

支持平台: platforms: linux/386,linux/amd64,linux/arm/v6,linux/arm/v7,linux/arm64,linux/ppc64le,linux/riscv64,linux/s390x

docker run -d \
  --name=qbittorrent \
  -e TZ=Asia/Shanghai \
  -e WEBUI_LANG=zh_CN \
  -p 8080:8080 \
  -p 25413:25413 \
  -p 25413:25413/udp \
  -v ./data:/var/lib/qBittorrent/data  \
  -v ./downloads:/var/lib/qBittorrent/downloads  \
  -v ./incomplete:/var/lib/qBittorrent/incomplete  \
  -v ./torrents:/var/lib/qBittorrent/torrents  \
   ghcr.io/snowdreamtech/qbittorrent:alpine

debian 版本

支持平台: platforms: linux/386,linux/amd64,linux/arm/v5,linux/arm/v7,linux/arm64,linux/mips64le,linux/ppc64le,linux/s390x

docker run -d \
  --name=qbittorrent \
  -e TZ=Asia/Shanghai \
  -e WEBUI_LANG=zh_CN \
  -p 8080:8080 \
  -p 25413:25413 \
  -p 25413:25413/udp \
  -v ./data:/var/lib/qBittorrent/data  \
  -v ./downloads:/var/lib/qBittorrent/downloads  \
  -v ./incomplete:/var/lib/qBittorrent/incomplete  \
  -v ./torrents:/var/lib/qBittorrent/torrents  \
   ghcr.io/snowdreamtech/qbittorrent:debian
3088 次点击
所在节点    NAS
11 条回复
Purelove
2025 年 1 月 23 日
linuxserver/qbittorrent

也可以试试这个
rqYzyAced2NbD8fw
2025 年 1 月 23 日
不要重复造轮子。英文看的不爽给别人的文档做个中文翻译就好了
Earthman
2025 年 1 月 23 日
推荐 静态编译的 [qbittorrent-nox-static]( https://github.com/userdocs/qbittorrent-nox-static/releases)
用 libtorrent 1.2 的,和 docker 一样方便
sn0wdr1am
2025 年 1 月 23 日
@Purelove
https://github.com/linuxserver/docker-qbittorrent

仅支持以下架构。
Architecture Available Tag
x86-64 ✅ amd64-<version tag>
arm64 ✅ arm64v8-<version tag>
armhf ❌
sn0wdr1am
2025 年 1 月 23 日
@LanhuaMa

重复造轮子有重复造轮子的必要性。

https://github.com/linuxserver/docker-qbittorrent

仅支持以下架构。
Architecture Available Tag
x86-64 ✅ amd64-<version tag>
arm64 ✅ arm64v8-<version tag>
armhf ❌
sn0wdr1am
2025 年 1 月 23 日
@Earthman
习惯使用 Linux 系统自己编译的包进行封装,支持的架构多,省事,由系统维护人员确定可用性。
如果自己去编译,可能会遇到各种各样的问题。
使用静态包,也可能遇到各种各样的问题。
SakuraYuki
2025 年 1 月 23 日
compose 安装不就行了...
SSang
2025 年 1 月 23 日
armhf 不是说没有支持的必要,只是 armhf 太少了,linuxserver 放弃 armhf 是有原因的。

如果是 armhf 用倒是可以,算是给这些过时平台的一个选择了。

你要是 action 能做到 qb 发版自动更新,可能还有点优势,但我看你还在 4.5 版本,而且是写死的,说实话我不知道这个轮子,除了对过时平台的支持,有什么造的意义。
sn0wdr1am
2025 年 1 月 23 日
@SSang 基于 alpine 3.21 的版本采用的是 qbittorrent-nox 5.0.2-r0
基于 Debian 12 的版本采用的是 qbittorrent-nox 4.5.2

追求新版本,请使用基于 alpine 3.21 的版本。
rqYzyAced2NbD8fw
2025 年 1 月 24 日
@sn0wdr1am #5 言之有理,赞你一下
Rebron1900
2025 年 2 月 10 日
记得内外端口一致,不然会出现鉴权问题,无法处理

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/1107193

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX