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.

Docker multiply extra parameters

Featured Replies

Hi, may a question if its possible to add more then 1 extra parameter for the docker start.

 

sample here on TVHeadend

 

-e 'pipework_cmd=br0 -i eth4 @CONTAINER_NAME@ 192.168.1.211/[email protected]'
-e 'pipework_cmd=br0 -i eth5 @CONTAINER_NAME@ 192.168.1.212/[email protected]'
-e 'pipework_cmd=br0 -i eth6 @CONTAINER_NAME@ 192.168.1.213/[email protected]'

 

as i need some extra ip´s for this docker i use pipework to achieve them, but as i can only use 1 Extra parameter ...

after each reboot i need to exchange the Extra parameter and restart another 2 times ...

 

so my question is, is this "-e 'pipwork..." also a variable wich could be otherwise assigned ?

 

or is there a simple way to add those 3 extra ip´s to unraid static and use them then in host mode from tvheadend docker ?

 

For any hints thanks ahead

Edited by alturismo

In the extra parameters field you can include as many parameters as needed.

 

Why using pipework? Since version 6.4 Unraid supports macvlan to make custom networks. This is all done thru the GUI.

  • Author
2 hours ago, bonienl said:

In the extra parameters field you can include as many parameters as needed.

 

Why using pipework? Since version 6.4 Unraid supports macvlan to make custom networks. This is all done thru the GUI.

well ...

 

when i add the extra parameter long like

 

-e 'pipework_cmd=br0 -i eth4 @CONTAINER_NAME@ 192.168.1.211/[email protected]' 'pipework_cmd=br0 -i eth5 @CONTAINER_NAME@ 192.168.1.212/[email protected]' 'pipework_cmd=br0 -i eth6 @CONTAINER_NAME@ 192.168.1.213/24@192.168.1.1'

 

it doesnt work, always only 1 gets assigned ... may a hint how the command would look like ?

 

and macvlan, when u mean assigning individual ip´s, i want all dockers and host to communicate with each other, and when i read correctly thats not possible due security .... sample usecase, i use letsencrypt to reverse proxy emby, plex, tvheadend, unraid webui, etc etc ...

 

and actually howto bridge all those networks together i couldt find a tutorial wich i can use ;)

would be sure the better solution, but i dont want to break my network cause im not sure howto ...

 

thats why i use pipework, just working besides the 2 extra starts i need ...

You're not adding an extra parameter.  You're adding an environment variable named "pipework_cmd"  Since you can only set the variable once, you will have to run the container 3 times to do what you want.

  • Author

ok, thanks, then i dont have to dig deeper ;)

  • Author

may one more question as final understanding to me

 

as all i need are 3 extra ip´s for my tvh docker to bind to so it can use all streams, and as TVH Docker uses host mode anyway ...

when i add 3 virtual nic´s on startup from array like this

 

#!/bin/bash
ifconfig eth0:0 192.168.1.211
ifconfig eth0:1 192.168.1.212
ifconfig eth0:2 192.168.1.213
exit

 

anything i could break like this ?

 

ok, removed pipework and started script as described, all good, hope it doesnt collide with unraid with those virtual nics ;)

Edited by alturismo
tested and working

Archived

This topic is now archived and is closed to further replies.

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.