Multiple IPs and Default IPs for Bridge'd containers


Uirel

Recommended Posts

So i have potentially a specific usage case thats a bit odd. I'd like to setup some cache containers inside my network, steamcache, origin, windowsupdates so on. The implementation i'm using and am familiar with uses separate ips for each service, as i can bind an ip to each container this makes for a less resource hungry setup than spinning up a vm for each service.

 

I've setup all the containers and added extra ips to the br0 with (a few times for different ips)

ip addr add 192.168.1.240/24 dev br0

As such I can get everything working correctly.

 

However, when some of my conventional containers (plex and so on) get updated or generally restart, sometimes they'll bind to these new ips, rather than the default ip of the server where i'd like them to stay. If i try and set them to bind to the servers default ip the first will stick, the next will complain that that ip is already assigned.

 

Is assigning the cache containers via br0 the right way? should i make a new interface and assign the ips to that and hang those containers off of that interface? Will that stop the 'Bridge' containers attaching to the ips?

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.