title: Docker container cannot access network
body: <p>All my containers cannot access internet if run without '--net=host'.</p>
  <h2>Environment</h2>
  <ul>
  <li>distro: <code>Ubuntu 13.04</code></li>
  <li>docker: <code>1.6.2</code></li>
  <li>go: <code>go1.4.2</code></li>
  <li>ufw: <code>DEFAULT_FORWARD_POLICY=&quot;ACCEPT&quot;</code></li>
  <li>2375 port: <code>2375/tcp ALLOW Anywhere</code></li>
  <li>docker daemon:
  <code>docker -d -H unix:///var/run/docker.sock --bip=172.17.42.1/16 -b docker0</code></li>
  <li>docker0 interface: <code>docker0: &lt;BROADCAST,MULTICAST&gt; mtu 1500 qdisc noqueue state DOWN</code></li>
  </ul>
  <h2>Question</h2>
  <p>I can append <code>--net=host</code> manually, but kubernetes always runs the docker without it. So any dockers in pods cannot pull images. What's worse, the Guestbook example failed either with the error <code>connection refused</code>, even add <code>x.x.x.x redis-master</code> in <code>/etc/hosts</code> of slaves.</p>
  <p>So is there a way to use host mode as docker daemon arg, or the kube arg?</p>