Docker multiply extra parameters


Recommended Posts

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
Link to comment
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 ...

Link to comment

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
Link to comment

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

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.