Jump to content

Two NICs, bind docker to alternative one


dandus

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
Link to comment

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...