Jump to content

Docker container using dedicated NIC


Recommended Posts

Posted

Hey guys, hope you're all well. 

 

Got an issue that is driving me mad with Docker networking and hope you can help. 

 

First, my config: - 

 

Networking: - 

 

Running 10.10.1.0/24 subnet

  • Intel(R) Ethernet Server Adapter X520 with x2 10GBE SFP's connected to a Unifi USW-AGG switch in 802.3ad mode (eth0 + eth1). This has been config'd correctly on the unifi switch and working well showing 20GB connection. This is named Main Fibre LAN.
  • 2x 2.5GBE built in to my mainboard (eth3 + eth4) These are named One and Two
  • I did test with an external USB3 1GB nic but did not carry on with this and guessing the OS still has this reserved as eth2 hence the jump.

 

Issue relevant dockers: - 

 

  • Scrypted NVR
  • Plex
  • SMTP server

 

What I want to Achieve: - 

 

  • Scrypted NVR docker to run on one 2.5GBE port servicing 9 cameras
  • smtp server to run on other 2.5GBE port
  • unRAID management, LAN file operation and plex and all other dockers to run over the bonded 20GB link (Intel(R) Ethernet Server Adapter X520)

 

I have read up on loads of tutorials how to do this for the dockers to be assigned there own nic and from what I have read, it needs to be setup this way: - 

 

All network interfaces to be in br mode to allow for dockers to use the networking, static ip to be setup on each network interface in network settings and then in docker, dhcp to be enabled point to the same subnet to pool ip's NOT used on my network outside of my LANN's dhcp pool. 

 

I have tried this and loads of other ways but when i go to networking in the docker settings, I only see my bonded main fibre Lan connection. 

 

I have also tried with no static IP on the interface in network settings, this gets assigned an ip but still nothing in docker networking. 

 

Please can someone help me through this and tell me where i am going wrong and how to configure this. I have been used to synology for the last 13 years or more and could just select the nic from list in docker settings i wanted to assign. 

 

I have attached a load of screen shots so you can see my tinkering and unRAID diag.  

 

Thanks guys,

 

Hal 

 

 

docker settings net set.jpg

docker smtp net set.jpg

network 1.jpg

network 2.jpg

network 3.jpg

plex net set.jpg

scrypted net set.jpg

unifi.jpg

hal-unraid-diagnostics-20240907-2336.zip

Posted

IP should be none unless you want an unraid UI on that nic.

I wouldn't recommend using the same subnet on multiple nics, it tends to not work unless you do some advanced networking.

 

The typical pattern for this is to create separate subnets (vlan + subnets) on your managed switch for each interface to use, you'd ideally also move the things it connects to onto the same vlan, e.g. NVR + cameras onto the same vlan+subnet.

Posted

Hi there. I have checked with trying to install another docker image (iCloud) and this is not giving me the network options I require so guessing I am either doing something wrong or this is a limitation of unRAID. 

 

I have also setup the ip to be none and still it is not showing in a new docker image commission. 

 

I know this is not Synology but when I was using a 1515+, It did allow for a single docker to use a specified nic and was quite easy to setup. Just Wish I knew how to do this with unRaid.

Posted

Guessing there is no fix for this then? 

 

I really don't understand how one docker can't be assigned a single nic. 

 

As previously state, I have tried with another docker image and this gives me the same networking options. 

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.

×
×
  • Create New...