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.

run container on occasion: best practices?

Featured Replies

Hi,

I want to run a docker container once in a while. I'm wondering what the best practices are.

 

Here is what I got:

A container runs a python script with an ENTRYPOINT directive so I can supply extra parameters.

A User Script (which I think is a cron job?) is planned to run the container periodically once with one set of parameters, and again with another set. something like :

docker run --rm pyscript args1
docker run --rm pyscript args2

However, I also have ENV variables in the Dockerfile I want to set. I would have to put them into the `run` comands.

I figured one solution would be to use `docker start` and create an UnRaid docker template with the variables all set there. But `start` doesn't allow for adding extra parameters.

 

My question is, what would be the cleanest way to do this?

Should I just suck it up and put the variables right in the script? If the variable is a password of sorts, is this as secure putting a password in an UnRaid docker template?

 

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.