title: unable to run Apache/php from docker container
body: <p>My requirement is using openface i need to train the dataset(images) and test  each input image from webinterface (PHP) and all this activity should run from docker container.</p>
  
  <p>I am able to achieve the above requirment on ubuntu machine. we are trying to install the complete setup(apache/php &amp; openface) in docker. <strong>currently we are unable to invoke the html files from apache server using docker</strong> </p>
  
  <p>The following the docker file used to import the project into docker and install apache/PHP. Please let me know if any changes need to be done in the dockerfile.</p>
  
  <pre><code>FROM ubuntu:16.04
  
  RUN apt-get update &amp;&amp; \
        apt-get -y install sudo
  
  RUN useradd -m docker &amp;&amp; echo "docker:docker" | chpasswd &amp;&amp; adduser docker sudo
  
  ADD opencv-3.0.0 /
  
  ADD openface_setup.sh /
  
  RUN /openface_setup.sh
  
  ADD openface_work /
  
  
  RUN apt-get update &amp;&amp; apt-get -y upgrade &amp;&amp; DEBIAN_FRONTEND=noninteractive apt-get -y install \
  apache2 php7.0 libapache2-mod-php7.0 curl lynx-cur
  
  RUN a2enmod php7.0
  RUN a2enmod rewrite
  
  RUN sed -i "s/short_open_tag = Off/short_open_tag = On/" /etc/php/7.0/apache2/php.ini
  RUN sed -i "s/error_reporting = .*$/error_reporting = E_ERROR | E_WARNING | E_PARSE/" /etc/php/7.0/apache2/php.ini
  
  ENV APACHE_RUN_USER www-data
  ENV APACHE_RUN_GROUP www-data
  ENV APACHE_LOG_DIR /var/log/apache2
  ENV APACHE_LOCK_DIR /var/lock/apache2
  ENV APACHE_PID_FILE /var/run/apache2.pid
  
  EXPOSE 8080
  
  VOLUME /var/www/html # **my PHP/html files are located here. In the docker container the html/php files are not reflecting**
  
  ADD apache-config.conf /etc/apache2/sites-enabled/000-default.conf
  
  CMD /usr/sbin/apache2ctl -D FOREGROUND
  </code></pre>
  
  <p>Once the container is started i want the test.html(located in /var/www/html) to be running.</p>
  
  <p>FYI : </p>
  
  <ol>
  <li><p>command to created docker image</p>
  
  <p><code>sudo docker build -t myname/apache-test .</code></p></li>
  <li><p>command to start the docker container</p>
  
  <p><code>docker run -p 8080:80 -d &lt;imageid&gt;</code></p></li>
  </ol>