Skip to content
View in the app

A better way to browse. Learn more.

Unraid

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Accessing containers from user scripts (rclone command not found)

Featured Replies

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

 

Solved by Bastian

  • 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.

Guest
Reply to this topic...

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.