title: How to configure a Docker container to be reachable by container_ip:port from outside the host machine?
body: <p>I have a host machine with multiple IP addresses assigned to one network interface. I'd like to configure Docker in order to have containers "responding" each one to a single IP of these IP addresses assigned to the host machine.</p>
  
  <p>Can this be done with libcontainer or do I have to use the LXC driver and run my containers with <code>--lxc-conf="lxc.network..."</code>?</p>
  
  <p>Thanks in advance.</p>
  
  <p><strong>UPDATE</strong></p>
  
  <p>I want each container to be reachable from outside; with the default Docker configuration I can only expose a port and reach the container by <code>host_ip:exposed_port</code> and not by <code>container_ip:port</code>. Can this second option be configured in some way?</p>