title: creating docker container to host website
body: <p>I want to run static website inside a docker container.
  For this i have create ubuntu EC2 machine,installed docker and pulled centos image.</p>
  
  <pre><code>docker pull centos
  docker run -td 9f38484d220f bash
  docker exec -it aa779e39eb0f bash
  ===&gt;now inside the container i am using below command
      yum update
      yum install apache
      service httpd start
  </code></pre>
  
  <p>but i am getting command not recognized error.</p>
  
  <p>Please help me figure out what i am doing wrong.</p>
  
  <p>Also i as i want to run static website i will be putting below code once apache is installed successfully</p>
  
  <pre><code>     $touch /var/www/html/index.html
       $chkconfig httpd on                 
       $echo "&lt;b&gt;Hii this is my first conatiner running/b&gt;" 
        &gt;&gt; /var/www/html/index.html
  </code></pre>
  
  <p>Is this correct way of doing it ?</p>