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.

Adding authentication variable to container

Featured Replies

Hi there

 

I am creating a docker manually in the wizard on my unraid system. I use a docker hub repository, in my case the original docker container for mongodb. I want to add the authentication variable ( --auth) to my run command, but i can't figure out where to put it. The original string for running the command is "$ docker run --name some-mongo -d mongo --auth"

 

I have managed to make it work, by putting the --auth variable behind the repository field, but i have to delete it every time i update my container, and my icon doesn't work. Isn't there a more "right" way to add this variable?

 

This is my custom template so far. Thanks!

Capture.PNG.27ef8b5a6b85158a9ea03c6828281377.PNG

If --auth is a variable you simply click where it says  Add another Path, Port or Variable and choose variable and add the info.

  • Author

If --auth is a variable you simply click where it says  Add another Path, Port or Variable and choose variable and add the info.

 

hmm.. I don't know if it is a variable or if it just is my word for it. How do i see this? It's this docker, and the authentication part is defined about 40% down the page.. Thanks.. https://hub.docker.com/_/mongo/

Put it in the extra parameters box and see if that boxes.

 

Sent from my C6903 using Tapatalk

 

 

  • Author

Put it in the extra parameters box and see if that boxes.

 

Sent from my C6903 using Tapatalk

 

Hmm.. I tried this, and got a little further.. I tried " --auth" and "-d mongo --auth". The last one made it able to complete, but not start. But i saw a pattern. If i put it behind the repository field, (here it works, but can't update, and other small errors), the --auth comes behind the mongo command. If i put them in the extra parameters field, it goes in front of the mongo command.

 

I need the --auth to be the last part of the command. Any ideas?

Capture.PNG.77ac7b98481af40b905351ba97f04204.PNG

Capture2.PNG.eae3859cbc4190a315f03515b446afc3.PNG

Put it in the extra parameters box and see if that boxes.

 

Sent from my C6903 using Tapatalk

 

Hmm.. I tried this, and got a little further.. I tried " --auth" and "-d mongo --auth". The last one made it able to complete, but not start. But i saw a pattern. If i put it behind the repository field, (here it works, but can't update, and other small errors), the --auth comes behind the mongo command. If i put them in the extra parameters field, it goes in front of the mongo command.

 

I need the --auth to be the last part of the command. Any ideas?

 

Just playing around with this out of curiosity, looking at the readme there's nothing about --auth, where are you getting that from?

--auth is a command line argument for mongod, so the only way to make this work for unraid is to put it in the repo box.

  • Author

Put it in the extra parameters box and see if that boxes.

 

Sent from my C6903 using Tapatalk

 

Hmm.. I tried this, and got a little further.. I tried " --auth" and "-d mongo --auth". The last one made it able to complete, but not start. But i saw a pattern. If i put it behind the repository field, (here it works, but can't update, and other small errors), the --auth comes behind the mongo command. If i put them in the extra parameters field, it goes in front of the mongo command.

 

I need the --auth to be the last part of the command. Any ideas?

 

Just playing around with this out of curiosity, looking at the readme there's nothing about --auth, where are you getting that from?

 

Im not an expert, but from the docker hub page.. Around 40% down.. https://hub.docker.com/_/mongo/ there is a section of authentication.

  • Author

--auth is a command line argument for mongod, so the only way to make this work for unraid is to put it in the repo box.

 

what a shame.. does this mean the repo box is actually a placing its input in the commandline argument field of a docker command? If you understand..

  • Author

whenever i try to update.. it tries to update from mongo --auth:latest and not mongo:latest.....

Capture.PNG.f47c9b088b51c0e163734e5a8396af0e.PNG

whenever i try to update.. it tries to update from mongo --auth:latest and not mongo:latest.....

 

Everything you add in the template ends up in the run command.

 

Every time you want to update the container you will need to remove --auth.

  • Author

whenever i try to update.. it tries to update from mongo --auth:latest and not mongo:latest.....

 

Everything you add in the template ends up in the run command.

 

Every time you want to update the container you will need to remove --auth.

 

Okay, thank you! Do you know if there is another workaround?

whenever i try to update.. it tries to update from mongo --auth:latest and not mongo:latest.....

 

Everything you add in the template ends up in the run command.

 

Every time you want to update the container you will need to remove --auth.

 

That is the workaround....

 

Okay, thank you! Do you know if there is another workaround?

  • 6 years later...

Did you ever figure this out? I'm running into the same issue currently.

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.