title: Docker 1.5 on IPv6 only host
body: <p>I have problems with routing traffic from Docker (version 1.5.0) container on IPv6 only host. <code>nc -w 10 2a00:1450:4010:c07::71 80</code> outputs <code>nc: connect to 2a00:1450:4010:c07::71 port 80 (tcp) timed out: Operation now in progress</code>. </p>
  
  <p>Following <a href="http://docs.docker.com/v1.5/articles/networking/#ipv6" rel="nofollow">this documentation</a> <code>ifconfig eth0; ifconfig docker0; ip -6 route show</code> shows:</p>
  
  <pre><code>eth0      Link encap:Ethernet  HWaddr fa:16:3e:74:4a:b9
            inet6 addr: fe80::f816:3eff:fe74:4ab9/64 Scope:Link
            inet6 addr: 2a02:6b8:0:1a71::2329/64 Scope:Global
            inet6 addr: 2a02:6b8:0:1a71:f816:3eff:fe74:4ab9/64 Scope:Global
            UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
            RX packets:78994 errors:0 dropped:0 overruns:0 frame:0
            TX packets:20269 errors:0 dropped:0 overruns:0 carrier:0
            collisions:0 txqueuelen:1000
            RX bytes:55503363 (55.5 MB)  TX bytes:1945660 (1.9 MB)
  
  docker0   Link encap:Ethernet  HWaddr 56:84:7a:fe:97:99
            inet addr:172.17.42.1  Bcast:0.0.0.0  Mask:255.255.0.0
            inet6 addr: fe80::5484:7aff:fefe:9799/64 Scope:Link
            inet6 addr: fe80::1/64 Scope:Link
            UP BROADCAST MULTICAST  MTU:1500  Metric:1
            RX packets:90 errors:0 dropped:0 overruns:0 frame:0
            TX packets:28 errors:0 dropped:0 overruns:0 carrier:0
            collisions:0 txqueuelen:0
            RX bytes:6528 (6.5 KB)  TX bytes:2840 (2.8 KB)
  
  2001:db8:0:2::/64 dev docker0  metric 1024
  2a02:6b8:0:1a71::/64 dev eth0  proto kernel  metric 256
  fe80::/64 dev eth0  proto kernel  metric 256
  fe80::/64 dev docker0  proto kernel  metric 256
  default via 2a02:6b8:0:1a71::1 dev eth0  metric 2048  mtu 1450 advmss 1390
  default via fe80::1 dev eth0  metric 2049  mtu 1450 advmss 1390
  </code></pre>
  
  <p>And <code>ifconfig eth0; ip -6 route show</code> within container:</p>
  
  <pre><code>eth0      Link encap:Ethernet  HWaddr 02:42:ac:11:00:09
            inet addr:172.17.0.9  Bcast:0.0.0.0  Mask:255.255.0.0
            inet6 addr: fe80::42:acff:fe11:9/64 Scope:Link
            inet6 addr: 2001:db8:0:2:0:242:ac11:9/64 Scope:Global
            UP BROADCAST  MTU:1500  Metric:1
            RX packets:1 errors:0 dropped:0 overruns:0 frame:0
            TX packets:1 errors:0 dropped:0 overruns:0 carrier:0
            collisions:0 txqueuelen:0
            RX bytes:110 (110.0 B)  TX bytes:90 (90.0 B)
  
  2001:db8:0:2::/64 dev eth0  proto kernel  metric 256
  fe80::/64 dev eth0  proto kernel  metric 256
  default via fe80::1 dev eth0  metric 1024
  </code></pre>
  
  <p>IPv6 and IPv4 routing is enabled (<code>cat /proc/sys/net/ipv6/conf/default/forwarding</code> gives <code>1</code> and <code>cat /proc/sys/net/ipv6/conf/all/forwarding</code> gives <code>1</code>). </p>
  
  <p>Seems like I need add route from <code>docker0</code> bridged IPv6 traffic to <code>eth0</code>, but have no idea what exactly to do.</p>
  
  <p>Please halp!</p>