Docker br0 Communication


neebski

Recommended Posts

I have several containers that I need to have their own IPs in order to route them through my routers VPN, all other traffic is fine to go over standard network. Unfortunately I've noticed that the dockers that are using br0 are unable to communicate with each other thus I'm not able to use nginx to route to these containers. 

 

What is the best way of doing this?

 

I'm sure further information will be needed but please let me know where to start.

Thank you!

  • Like 1
Link to comment

You need to run a docker main config like this;

network create macvlan --subnet=192.168.1.0/24 --gateway=192.168.1.1 -o parent=br0 mymcvlannet

and then, something like this in the run line;

docker run --net mymcvlannet --ip 192.168.1.111

That way your container should have its served ports blank on that .111 LAN IP, so you don't have to run strange proxy-setups.

 

Only problem is, I have no idea where to put this in unRAID GUI.

Edited by fluisterben
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.