ubuntu docker 安装 qbittorrent 种子下载

 环境

ubuntu 20.04

1.安装docker

Ubuntu 安装Docker 运行Nginx-CSDN博客

2.安装docker-compose 

Ubuntu 安装 docker-compose-CSDN博客

3.编写shell脚本

vim start.sh
#!/bin/bash
 
# 创建目录结构
rm -r /docker/qbittorrent
mkdir -p /docker/qbittorrent/downloads
mkdir -p /docker/qbittorrent/config


# 进入目标目录
cd /docker/qbittorrent
 
# 将内容写入 docker-compose.yml 文件
cat <<EOF > docker-compose.yml
services:
  qbittorrent:
    image: linuxserver/qbittorrent:latest
    container_name: qbittorrent
    environment:
      - TZ=Asia/Shanghai # 你的时区
      - UMASK_SET=022
      - WEBUI_PORT=8127
      - TORRENTING_PORT=8128
    volumes:
      - /dock

猜你喜欢

转载自blog.csdn.net/jhgj56/article/details/145012732
今日推荐