So I've got transmission running in a docker container. I want to use an after-done script to move the completed downloads to a file on the local host after the download completes. However I'm not sure how to move a file outside of the container.
Now, the completed folder is mapped to a local drive, so I can see the files just fine in the local system, so I can manually copy them, but I want it to be automated after the download completes. But since the script is being run inside the container, it has no access to the local file systems. Any way to accomplish this?
Moving completed files from docker container to host
-
- Posts: 2
- Joined: Mon Jan 03, 2022 3:18 am
Re: Moving completed files from docker container to host
You can mount a volume on the container at container start. This will allow your host machine to see files/directories in the path that is mounted and will do the same for the container. Then once a download is complete have them moved to the mounted directory and then you can have a script on the host machine move them from there.
https://docs.docker.com/storage/volumes/
https://docs.docker.com/storage/volumes/