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.

Is there a way to specify for a docker container to run a command each time it restarts?

Featured Replies

I would my Overseerr container (with Tailscale mod built in) to automatically run the command "Tailscale serve 5055" each time the container needs to be restarted. Is there a way to achieve this? For now, I am using user scripts to run this command with a chron job set to daily, but it is not the most ideal solution.

The short answer is yes.  All a docker container does is run commands (there is some isolation that makes it a container vs just another process on your computer).  I would recommend building a very simple docker container yourself so you understand the basics of how they work, then you will be able to answer this question.

 

However, this has nothing to do with unRAID beyond unRAID having the capability to run docker containers.  I would recommend asking on a Stack Exchange website instead (such as Stack Overflow).

On 2/6/2025 at 6:44 PM, tlou said:

I would my Overseerr container (with Tailscale mod built in) to automatically run the command "Tailscale serve 5055" each time the container needs to be restarted. Is there a way to achieve this? For now, I am using user scripts to run this command with a chron job set to daily, but it is not the most ideal solution.

If you run

 

tailscale serve --bg 5055

 

It will save it in the state file, and you won't have to run the command again at all.

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.