# docker-qbittorrent **Repository Path**: meimolihan/qbittorrent ## Basic Information - **Project Name**: docker-qbittorrent - **Description**: qbittorrent 下载器 - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2025-08-06 - **Last Updated**: 2025-08-08 ## Categories & Tags **Categories**: Uncategorized **Tags**: docker-compose ## README ![](https://file.meimolihan.eu.org/screenshot/docker-qbittorrent-001.webp) **docker 部署 qbittorrent 下载器** **qBittorrent GitHub地址:** **qBittorrent Docker Hub地址:** 1 、终端命令创建docker-compose.yml文件 ```yaml mkdir -p /mnt/mydisk/home/qbittorrent && \ cd /mnt/mydisk/home/qbittorrent && \ touch docker-compose.yml && \ cat > docker-compose.yml <<'EOF' services: qbittorrent: image: lscr.io/linuxserver/qbittorrent:latest container_name: qbittorrent environment: - PUID=1000 - PGID=1000 - TZ=Etc/UTC - WEBUI_PORT=8080 - TORRENTING_PORT=6881 volumes: - ./config:/config - /vol2/1000/downloads/qbittorrent:/downloads ports: - 8080:8080 - 6881:6881 - 6881:6881/udp restart: unless-stopped ## ssh查看随机密码:docker logs qbittorrent ## qBittorrent_后台地址:http://localhost:8081 EOF docker-compose up -d ``` 2 、拉取并运行 ```bash cd /mnt/mydisk/home/qbittorrent && \ docker-compose up -d ``` 3 、停止并删除 ```bash cd /mnt/mydisk/home/qbittorrent && \ docker-compose down ``` 4 、拉取镜像 ```bash docker pull lscr.io/linuxserver/qbittorrent:latest ``` 5 、容器升级 ```bash cd /mnt/mydisk/home/qbittorrent && \ docker-compose down && \ docker-compose pull && \ docker-compose up -d && \ docker image prune -f ``` 6 、ssh查看随机密码 ```bash docker logs qbittorrent ``` **容器维护命令** 1 、查看所有运行容器的名称 ```bash docker ps -a --format "{{.Names}}" ``` 2 、停止 qbittorrent 容器 ```bash docker stop qbittorrent ``` 3 、启动 qbittorrent 容器 ```bash docker start qbittorrent ``` 4 、重启 qbittorrent 容器 ```bash docker restart qbittorrent ``` 5 、进入 qbittorrent 容器 ```bash ## Ctrl+D 退出容器 ## docker exec -it qbittorrent sh docker exec -it qbittorrent bash ``` 6 、查看 qbittorrent 配置文件 ```bash cat /mnt/mydisk/home/qbittorrent/docker-compose.yml ``` 7 、SSH查看随机密码 ```bash docker logs qbittorrent ``` ![](https://file.meimolihan.eu.org/screenshot/qbittorrent-001.jpg)