Two NICs, bind docker to alternative one


Recommended Posts

I have two NICs.  They are IP 192.168.1.247 and 192.168.1.248

 

When  mapping containers to the host ports, it will always be mapping to ports on 192.168.1.247.

 

How can I map the containers to ports on 192.168.1.248?

 

I want to map some containers to 192.168.1.247 and some to 192.168.1.248.

 

eth0

MAC address:
xx:xx:xx:xx:xx:xx
Enable bonding:
 No
Enable bridging:
 Yes
Bridging members:
 
eth0
Interface description:
 
IP address assignment:
 Automatic
IP address:
 
Network mask:
 255.255.255.0
Default gateway:
 
DNS server assignment:
 AutomaticStatic
DNS server:
192.168.1.254
Desired MTU:
 
Enable VLANs:
 No
 
 
eth1
 
MAC address:
yy:yy:yy:yy:yy:yy
 
Enable bridging:
 Yes
 
Interface description:
 
IP address assignment:
 Automatic
IP address:
192.168.1.248
Network mask:
 255.255.255.0
Desired MTU:
 
Enable VLANs:
 No
Edited by dandus
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.