title: Docker container bridged interface to assign IP address
body: <p>I have tried to remove the default <code>docker0</code> interface, because I would like to assign IP addresses with use of <code>eth0</code> and its IP "range".</p>
  
  <p>First I tried to edit <code>/etc/network/interfaces</code> and define a new interface, with which I can replace default <code>docker0.</code></p>
  
  <pre><code>auto br0
      iface br0 inet static
              address 10.1.1.1
              netmask 255.255.255.0
              bridge_ports dummy0
              bridge_stp off
              bridge_fd 0
      docker -d -b br0
  </code></pre>
  
  <p>You can see below one of my container's virtual interface configuration. The new <code>br0</code> interface isn't working; containers can't get addresses from its range. By using <code>docker inspect</code>, I've found that they have IP addresses like <code>172.17.0.X</code>, which are totally useless.</p>
  
  <pre><code>vethb9597ff Link encap:Ethernet  HWaddr 5a:b5:0d:20:56:11
            inet6 addr: fe80::58b5:dff:fe20:5611/64 Scope:Link
            UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
            RX packets:8 errors:0 dropped:0 overruns:0 frame:0
            TX packets:16 errors:0 dropped:0 overruns:0 carrier:0
            collisions:0 txqueuelen:0
            RX bytes:648 (648.0 B)  TX bytes:1296 (1.2 KB)
  </code></pre>
  
  <p>So I am looking now for the easiest way to assign IP addresses from <code>eth0</code> in bridge mode.</p>