title: Following a docker tutorial but tutorial and real output is different
body: <p>I am new to docker and trying to understand what this domain is. I stumbled upon following <a href="http://containertutorials.com/" rel="nofollow noreferrer">tutorial</a>. I am a backend developer and liked this tutorial since it talks about micro-services BUT the tutorial doesn't explain the commands. For example, I am currently stuck at <a href="http://containertutorials.com/alpine/alpine-apache-server-static-site.html" rel="nofollow noreferrer">following section of tutorial</a>. </p>
  
  <p>I ran following command </p>
  
  <pre><code>docker run  -p 80:80 --name my-apache2-alpine-1  my-apache2-alpine
  </code></pre>
  
  <p>Here is output of this command on my terminal</p>
  
  <pre><code>$ docker run -p 80:80 --name my-apache2-alpine-1 my-apache2-alpine
  [s6-init] making user provided files available at /var/run/s6/etc...exited 0.
  [s6-init] ensuring user provided files have correct perms...exited 0.
  [fix-attrs.d] applying ownership &amp; permissions fixes...
  [fix-attrs.d] done.
  [cont-init.d] executing container initialization scripts...
  [cont-init.d] 30-resolver: executing... 
  [cont-init.d] 30-resolver: exited 0.
  [cont-init.d] 40-resolver: executing... 
  [cont-init.d] 40-resolver: exited 0.
  [cont-init.d] done.
  [services.d] starting services
  [services.d] done.
  AH00558: httpd: Could not reliably determine the server's fully qualified domain name, using 172.17.0.3. Set the 'ServerName' directive globally to suppress this message
  [cont-finish.d] executing container finish scripts...
  [cont-finish.d] done.
  [s6-finish] syncing disks.
  [s6-finish] sending all processes the TERM signal.
  [s6-finish] sending all processes the KILL signal and exiting.
  </code></pre>
  
  <p>This command didn't result in expected result as pointed out in tutorial i.e., <code>http://localhost:80/myindex.html</code> is "unable to connect" i.e., server is not running there. </p>
  
  <p>Now here are my questions</p>
  
  <ol>
  <li>What is i am missing here, why i didn't get expected result as pointed out in tutorial? </li>
  <li>Can someone explain the command that i ran above? </li>
  </ol>
  
  <hr>
  
  <p><strong>UPDATE</strong>
  Here are the content of <code>Dockerfile</code></p>
  
  <pre><code>~/docker-practice/static-site$ cat Dockerfile 
  FROM smebberson/alpine-apache
  ADD ./public-html/myindex.html /var/www/localhost/htdocs
  ~/docker-practice/static-site$ 
  </code></pre>