title: Run docker image on specific port
body: <p>I am new to Docker.</p>
  <p>I was trying to dockerize a simple static website using nginx base image.
  The applicatio runs fine on local server when i run.</p>
  <p><code>docker run -d -P &lt;container-name&gt;</code>
  So, here the app runs on some random port on which i am able to see my app running.
  while, when i try to specify port by using the following command:</p>
  <p><code>docker run -d -p 5000:5000 --restart=always --name app mkd63/leo-electricals</code></p>
  <p>The page at localhost:5000 shows site cant be reached.</p>
  <p>My Dockerfile is:</p>
  <pre><code>FROM nginx:alpine
  COPY . /usr/share/nginx/html
  EXPOSE 5000
  </code></pre>