title: How to change the port of nginx when using with docker
body: <p>I am a docker beginner and the first thing i did was download nginx and tried to mount it on 80:80 port but Apache is already sitting there.</p>
  
  <pre><code>docker container run --publish 80:80 nginx
  </code></pre>
  
  <p>and  <code>docker container run --publish 3000:3000 nginx</code></p>
  
  <p>I tried doing it like this 3000:3000 to use it on port 3000 but it doesn't work .And it doesn't log anything either which i could use for referance.</p>