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
    


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM