title: How do I create a container with multiple network interfaces for different functions?
body: <p>I can't find the best answers to this, hence I'm posting my question here.</p>
  <p>How can I create a container with multiple network interfaces?</p>
  <ul>
  <li>1st network expose the port so that others can access;</li>
  <li>2nd network the container needs to access a gateway device;</li>
  </ul>
  <pre><code>                       -------------------     -----------------------
   -----------      .---| port:3000 exposed |---| host / lan can access |
  | container |----&lt;     -------------------     -----------------------
   -----------      '_   -------------------     -----------------------
                      '-| 192.168.1.0/24    |---| access to 192.168.1.1 |
                         -------------------     -----------------------
  
  </code></pre>
  <p>I have atleast 3 network interface on my host, wlan0, eth0, eth1(usb-lan adapter).</p>
  <p>I have the gateway connected on eth1.
  eth0 is where i need to expose the container port.
  wlan0 used for management of the host thru ssh.</p>
  <p>Is this possible within the container?
  I'm open to docker or docker-compose solution.</p>