docker版qbittorrent遇到的问题

参考文档 https://post.smzdm.com/p/a7do76vd/

  • 拉取镜像
docker pull linuxserver/qbittorrent
  • 新建docker-compose.yml
version: "2"
services:
  qbittorrent:
    image: linuxserver/qbittorrent
    container_name: bt
    environment:
      - PUID=1000
      - PGID=1000
      - TZ=Asia/Shanghai # 你的时区
      - UMASK_SET=022
      - WEBUI_PORT=1234 # 将此处修改成你欲使用的 WEB 管理平台端口 
    volumes:
      - /APP/BT/config:/config # 绝对路径请修改为自己的config文件夹
      - /mnt/HuiPu/download:/downloads # 绝对路径请修改为自己的downloads文件夹
    ports:
      # 要使用的映射下载端口与内部下载端口,可保持默认,安装完成后在管理页面仍然可以改成其他端口。
      - 6881:6881 
      - 6881:6881/udp
      # 此处WEB UI 目标端口与内部端口务必保证相同,见问题1
      - 1234:1234
    restart: unless-stopped
  • 可能遇到的问题

    shell /usr/bin/qbittorrent-nox: error while loading shared libraries: libQt5Core.so.5: cannot open shared object file: No such file or directory

  • 解决办法

    docker exec -it bt /bin/sh
    
  • 更新库

    apt update
    
  • 安装binutils

    apt install binutils
    
  • 剥离

strip --remove-section=.note.ABI-tag /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
  • 退出容器 /重启容器

    exit 
    docker restart bt
    
原文地址:https://www.cnblogs.com/braless/p/14647804.html