Docker container doesn't expose ports when --net=host is mentioned in the docker run command
<p>I have a CentOS docker container on a CentOS docker host. When I use this command to run the docker image <code>docker run -d --net=host -p 8777:8777 ceilometer:1.x</code> the docker container get host's IP but doesn't have ports assigned to it.</p>

<p>If I run the same command without "--net=host" <code>docker run -d -p 8777:8777 ceilometer:1.x</code> docker exposes the ports but with a different IP. The docker version is 1.10.1. I want the docker container to have the same IP as the host with ports exposed. I also have mentioned in the <code>Dockerfile</code> the instruction <code>EXPOSE 8777</code> but with no use when "--net=host" is mentioned in the <code>docker run</code> command.</p>