title: Docker containers keep losing internet
body: <p>I have configured to use docker on Centos 6.5. Quite often the containers keep losing internet. In such instances I have to restart Docker on the host. Recently, I tried to run an yum update from inside a container which failed. Following is the log from /var/log/docker </p>
  
  <pre><code>2014/07/15 10:33:36 GET /v1.12/containers/update_test/json
  [b601ba8c] +job container_inspect(update_test)
  [b601ba8c] -job container_inspect(update_test) = OK (0)
  2014/07/15 10:33:36 POST /v1.12/containers/update_test/attach?stderr=1&amp;stdin=1&amp;stdout=1&amp;stream=1
  [b601ba8c] +job container_inspect(update_test)
  2014/07/15 10:33:36 POST /v1.12/containers/update_test/start
  [b601ba8c] +job start(update_test)
  [b601ba8c] -job container_inspect(update_test) = OK (0)
  [b601ba8c] +job attach(update_test)
  [b601ba8c] +job allocate_interface(5a5c0247441ef5872b531ba720ba1f7d8af2df1cbd47b4a98b84a7b995384d8b)
  [b601ba8c] -job allocate_interface(5a5c0247441ef5872b531ba720ba1f7d8af2df1cbd47b4a98b84a7b995384d8b) = OK (0)
  [b601ba8c] -job start(update_test) = OK (0)
  2014/07/15 10:33:36 POST /v1.12/containers/update_test/resize?h=37&amp;w=165
  [b601ba8c] +job resize(update_test, 37, 165)
  [b601ba8c] -job resize(update_test, 37, 165) = OK (0)
  [b601ba8c] +job release_interface(5a5c0247441ef5872b531ba720ba1f7d8af2df1cbd47b4a98b84a7b995384d8b)
  [b601ba8c] -job release_interface(5a5c0247441ef5872b531ba720ba1f7d8af2df1cbd47b4a98b84a7b995384d8b) = OK (0)
  [error] container.go:492 5a5c0247441ef5872b531ba720ba1f7d8af2df1cbd47b4a98b84a7b995384d8b: Error closing terminal: invalid argument
  [b601ba8c] -job attach(update_test) = OK (0)
  </code></pre>
  
  <p>As mentioned above restarting Docker on the host solves the issue. I don't want to keep restarting the docker as I am planning to run a production application through docker. Anybody have any idea in this regard?</p>
  
  <p>Please let me know if you need more information in this regard.</p>