Docker and transmition folder relocation to external drive

  • Hello I was having an issue with docker and how to set up transmission on a raspberry pi 3. I want transmission to store the downloaded files and the watch folder on a USBdrive I thought I could make a symbolic link from /home/docker/transmission/downloads to my share /dev/sdd1/movies/download but that didn't work was wondering if I can add the share to docker or a symbolic link to the root drive to redirect the files.


    <mntentref>a6cb1762-e869-4420-87c4-492ec8046286</mntentref>

    <reldirpath>/home</reldirpath>

    <privileges></privileges>

    </sharedfolder>

    <sharedfolder>

    <uuid>50db7bab-10c2-4572-a5f8-1fae03c97e57</uuid>

  • here is the code from my failed attempts


    root@home:/media# nano /etc/openmediavault/config.xml

    root@home:/media# sudo docker create --name=transmission \

    > --restart=always \

    > -v /home/docker/transmission/config:/config \

    > -v /dev/disk/by-label/Iron/Movies/download:/downloads \

    > -v /dev/disk/by-label/Iron/Movies/watch:/watch \

    > -e PGID=1001 -e PUID=1001 \

    > -e TZ=America/Los_Angeles \

    > -p 9091:4221 -p 51413:51413 \

    > -p 51413:51413/udp \

    > linuxserver/transmission

    Unable to find image 'linuxserver/transmission:latest' locally

    latest: Pulling from linuxserver/transmission

    cb1cd524088f: Pull complete

    d255b3f33366: Pull complete

    b68062b0e773: Pull complete

    5f5f6f887bc6: Pull complete

    097a2fb7061e: Pull complete

    Digest: sha256:26dbfe004778050793f98bd153806a08a0c46d69faee7b6768f2067c4af36f64

    Status: Downloaded newer image for linuxserver/transmission:latest

    c119e451258a6e154d3e2aed18b8033cc5f008c75c1712a1d663e8bda13c926b

    root@home:/media# docker start transmission

    Error response from daemon: OCI runtime create failed: container_linux.go:349: starting container process caused "process_linux.go:449: container init caused \"rootfs_linux.go:58: mounting \\\"/dev/disk/by-label/Iron/Movies/download\\\" to rootfs \\\"/var/lib/docker/overlay2/b6298222f4430b87906156f9e0847a9217a27e371c4977051d929d6312cc69d2/merged\\\" at \\\"/downloads\\\" caused \\\"stat /dev/disk/by-label/Iron/Movies/download: not a directory\\\"\"": unknown: Are you trying to mount a directory onto a file (or vice-versa)? Check if the specified host path exists and is the expected type

    Error: failed to start containers: transmission

    root@home:/media#

    • Official Post

    -v /dev/disk/by-label/Iron/Movies/download:/downloads

    try

    /srv/dev-disk-by-label-Iron/movies.... instead.


    Drives are mounted in /srv/, so you can check the path there. Or in the GUI of OMV if you let the GUI show the absolute path of the mount points.

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!