问题描述
使用 linuxserver/qbittorrent:latest
镜像首次启动qb后,无法访问 WEBUI,docker logs
日志一直刷报错信息:
/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 qbittorrent bash
# 更新
apt update -y
# 安装
apt install -y binutils
# 剥离
strip --remove-section=.note.ABI-tag /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
# 退出容器
exit
# 上面的组合成一行命令
docker exec -it qbittorrent bash -c "apt update -y && apt install -y binutils && strip --remove-section=.note.ABI-tag /usr/lib/x86_64-linux-gnu/libQt5Core.so.5"
然后关闭容器,再启动容器。
访问WEBUI返回 Unauthorized
配置文件缺少参数
# qBittorrent.conf
WebUI\HostHeaderValidation=false
# 一行命令
echo 'WebUI\HostHeaderValidation=false' >> qbittorrent/qBittorrent/qBittorrent.conf
此处评论已关闭