I have docker with a transmission container. (Consider me in the learning phase. Although I never leave that phase.)
From within the console of the container in Portainer I run:
transmission-create -o ~/uploads/My_Book.torrent -p -t <announce_url> ~/books/My_Book.epub
The response I get:
Creating torrent “root/upload/My_Book.torrent”
ERROR: Cannot find specified input file or directory.
I have also run:
transmission-create -o /uploads/My_Book.torrent -p -t <announce_url> /books/My_Book.epub
Same results.
I am uncertain how to manage the files paths? (In the compose file for transmission I declare /uploads & /books locations.
I am very open to suggestions and education.
Transmission-create from within docker/portainer
Re: Transmission-create from within docker/portainer
The error message you're getting, "Cannot find specified input file or directory," suggests that the transmission-create command is not able to locate the files you're trying to create the torrent for.
Now, the way you've set up the file paths in your Transmission container using Portainer is on the right track. Declaring the /uploads and /books locations in your compose file is a great start. However, the issue seems to be with how you're referencing those paths within the container.
Try this instead:
Instead of using ~/uploads and ~/books, you're using the absolute paths that you've defined in your compose file. This should help the transmission-create command find the necessary files and directories.
Now, the way you've set up the file paths in your Transmission container using Portainer is on the right track. Declaring the /uploads and /books locations in your compose file is a great start. However, the issue seems to be with how you're referencing those paths within the container.
Try this instead:
Code: Select all
transmission-create -o /uploads/My_Book.torrent -p -t <announce_url> /books/My_Book.epub