Page 1 of 1

"Open Download Folder" troubles when running Deluge in a container

Posted: Thu Apr 04, 2024 12:24 am
by mlysle
I setup deluge using the container from linuxserver.io, and connected to it using the GTK client. Everything works as it should, except for the "Open download folder" option, because it tries to open the path mapped inside the container, and not the path on my host machine. I'm not sure what to do in this situation. It seems like a bind mount would help because it preserves the original path from the host system. However, the docker documentation discourages using bind mounts in favor of volumes. My compose.yaml:

services:
deluge:
image: lscr.io/linuxserver/deluge:latest
container_name: deluge
environment:
- PUID=1000
- PGID=1000
- TZ=America/Denver
- DELUGE_LOGLEVEL=error #optional
volumes:
- ./config:/config
- /8tb/deluge/data:/downloads
- /8tb/deluge/torrents:/torrents
- /8tb/deluge/watch:/watch
ports:
- 8112:8112
- 6881:6881
- 6881:6881/udp
- 58846:58846 #optional
restart: unless-stopped

Re: "Open Download Folder" troubles when running Deluge in a container

Posted: Thu Apr 04, 2024 12:43 am
by ambipro
This is just the nature of docker, and isn't a bug. Docker is not aware of anything outside of its container. It's contained. That's the whole purpose.

I'm not sure what you're main goal is with this, browsing the torrent? If so, just mount it as its mounted in the host system, otherwise you're going to run into this problem when using docker.