qBitTorrent installed by Docker file, saving files in a folder that I dont want!

If you run qBittorrent in / with Docker.
Post Reply
paivadaniel

qBitTorrent installed by Docker file, saving files in a folder that I dont want!

Post by paivadaniel »

I have a hd mounted in /media/Courses (correctly configured in /etc/fstab) to store my downloads. In my Web UI of qBitTorrent installed via Docker, in the settings I checked for the files to be saved in: /media/Courses/downloads, but everything is being saved in: /var/lib/docker/overlay2/a6b437c93a0285c951ea64bfc59705e49e0e057c2d024951d7000cfe515926b4/diff/media/Cursos/downloads/

How do I save the files in /media/Courses/downloads?

follow my docker-compose for qBitTorrent:

version: "2.1"
services:
qbittorrent:
image: lscr.io/linuxserver/qbittorrent:latest
container_name: qbittorrent
environment:
- PUID=0
- PGID=0
- TZ=America/Sao_Paulo
- WEBUI_PORT=8080
volumes:
- /media/Cursos/data/qbittorrent:/config
- /media/Cursos/downloads:/downloads
ports:
- 8080:8080
- 6881:6881
- 6881:6881/udp
restart: unless-stopped

p.s.: I changed my PUID and PGID from 1000 to 0 because I was getting the "Permission Denied" error when trying to download torrents.
gderf
Member
Member
Posts: 38
Joined: Mon Apr 26, 2021 3:26 pm

Re: qBitTorrent installed by Docker file, saving files in a folder that I dont want!

Post by gderf »

In the QBT configuration page you are using an incorrect location to store your downloads. You can NOT use a directory located on your system, it must be, in your use case, /downloads
ticedoff8
Member
Member
Posts: 21
Joined: Sat Jul 20, 2024 1:16 am

Re: qBitTorrent installed by Docker file, saving files in a folder that I dont want!

Post by ticedoff8 »

p.s.: I changed my PUID and PGID from 1000 to 0 because I was getting the "Permission Denied" error when trying to download torrents.
Changing the PUID and PGID to 0 is a security risk (and it didn't work for me - lol)

But, I changed the fstab entry to make the CIFS mount 777

Code: Select all

//nas/bittorrent /mnt/qbittorrent.downloads cifs  credentials=/etc/win-credentials-qbittorrent,file_mode=0777,dir_mode=0777 0 0
That makes the mount wide open and the downloads started working regardless of what PUID or PGID is being used

But, I'd rather figure out the "correct way" to get this working in a more secure mode.
Post Reply