How can I run a docker container on localhost over the default IP?
<p>I'm following the <a href="https://blog.docker.com/2015/04/tips-for-deploying-nginx-official-image-with-docker/" rel="noreferrer">following tutorial</a> on how to start a basic nginx server in a docker container. However, the example's nginx docker container runs on localhost (0.0.0.0) as shown here:
<a href="https://i.stack.imgur.com/2w7zc.png" rel="noreferrer"><img src="https://i.stack.imgur.com/2w7zc.png" alt="nginx example image"></a></p>

<p>Meanwhile, when I run it it for some reason it runs on the IP 10.0.75.2:
<a href="https://i.stack.imgur.com/IxMXB.png" rel="noreferrer"><img src="https://i.stack.imgur.com/IxMXB.png" alt="enter image description here"></a></p>

<p>Is there any particular reason why this is happening? And is there any way to get it to run on localhost like in the example?</p>

<hr>

<p><strong>Edit</strong>: I tried using <code>--net=host</code> but had no results:
<a href="https://i.stack.imgur.com/ZMe4p.png" rel="noreferrer"><img src="https://i.stack.imgur.com/ZMe4p.png" alt="Result of --net=host"></a></p>