Docker : publish port automatically with exact port number match
<p>I have this line in my <code>Dockerfile</code>:</p>

<pre><code>EXPOSE 80
</code></pre>

<p>When I start my docker, I need to call <code>docker run -p 80:80 ...</code></p>

<p>Ain't there an option to auto-publish every exposed port with the same port-number? I thought at first <code>-P</code> would do, but it actually matches the port to randomly selected ones.</p>

<p>This would be much handier than having to set <code>-p 80:80</code> and if the docker is configured to work with this parameter there is no reason to make the port numbers a parameters of <code>docker run</code>!</p>