title: docker not exposing the port with network host
body: <p>I am trying to run a docker container listening on port 5555, the image is built with <code>EXPOSE 5555</code> in Dockerfile and I am running the container as below</p>
  
  <pre><code>$ docker run -d --name controler -p 5555:5555  -v /var/run/docker.sock:/var/run/docker.sock --net=host  my_image:latest
  </code></pre>
  
  <p>The container starts fine but the ports are not exposed, running docker port returns an error message</p>
  
  <pre><code>$ docker port controler 5555
  Error: No public port '5555/tcp' published for controler
  </code></pre>
  
  <p>If I run the container without <code>--net=host</code> , the ports are exposed and I can access the container.</p>
  
  <p>Any idea or hints on what is really happening here is appreciated.</p>
  
  <blockquote>
    <p>Note: I am using the latest docker for mac beta Version 1.12.0-beta21
    (build: 11019) on my mac running el capitan</p>
  </blockquote>