title: docker-proxy getting accept4: bad file descriptor
body: <p>I am trying to add a port forwarding to docker container using docker-proxy but experiencing this error below,</p>
  
  <p>Here are the details,</p>
  
  <ul>
  <li><p>A container with IP 172.17.0.2 is already running with --net=none. We are providing our own network and not using docker0 network.</p></li>
  <li><p>Now we want to expose some ports of container to host, so thought of trying docker-proxy.</p></li>
  <li><p>we executed the below command,</p>
  
  <pre><code>$ docker-proxy -container-ip 172.17.0.2 -container-port 8000 -host-ip 0.0.0.0   -host-port 8000 -proto tcp
   and we are getting,
   2017/03/16 10:02:30 Stopping proxy on tcp/[::]:8001 for tcp/172.17.0.2:8001 (accept tcp [::]:8001: accept4: bad file descriptor)
  </code></pre></li>
  </ul>
  
  <p>Docker version: Docker version 17.03.0-ce, build 60ccb22</p>