April 25, 20242 yr Hi, I have recently set up unraid server and transferred 20 docker containers to it. I am trying to schedule an rclone sync using user scripts. However, I am unsure how to run the command. I can run rclone (or any other container) commands by using the specific container's console from the docker tab. However, if I am trying to access rclone or /usr/bin/rclone from the terminal, or within a user script, I get "-bash: rclone: command not found''. So, how do I go about this? Thanks
April 27, 20242 yr Solution You have to differentiate on which system your shells are running. User Scripts run in Unraids shell, which doesn't contain any rclone binary. If you open a Terminal on the Docker Tab, you actually start a session within the Container. To replicate that behaviour you have to actually execute the command within the Container. The responsible command is called docker exec. A possible User Scripts could look like docker exec $(docker ps --filter=name=<NAME> -q) /bin/bash -c "YOUR COMMAND"
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.