br0 to eth0/macvlan to host


richowen

Recommended Posts

 

Quote

With only a single NIC, and no VLAN support on your network, it is impossible for the host unRAID to talk to the containers and vice versa; the macvlan driver specifically prohibits this. This situation prevents a reverse proxy docker from proxying unRAID, but will work with all other containers on the new docker network.

 

This is my problem, I NEED to run netdata docker on the host network to be able to fully see host stats, but I need to run my nginx and all other dockers on br0 macvlan, is there ANY way to let nginx proxy/talk to netdata (eth0 to br0)?

 

This is something I've found online but I get device busy when trying to implement even with everything unplugged.
 

Quote

curl: (7) Failed connect to 10.12.0.117:80; No route to host

 

The host is unable to communicate with macvlan devices via the primary interface. You can create another macvlan interface on the host, give it an address on the appropriate network, and then set up routes to your containers via that interface:

 

# ip link add em1p1 link em1 type macvlan mode bridge

# ip addr add 10.12.6.144/21 dev em1p1

# ip route add 10.12.0.117 dev em1p1

 

Any ideas?

  • Upvote 1
Link to comment
  • 2 months later...

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.