Use Php in Docker Apache
<p>I'm trying to use docker but I have a lot of problem.
Now i Want to use an apache container and use a volume of my php</p>

<p>my images are </p>

<ul>
<li>nimmis/apache</li>
<li>5.6-fpm</li>
</ul>

<p>my docker ps is:</p>

<pre><code>85e592d46fcc        nimmis/apache       "/my_init"               3 minutes ago       Up 3 minutes        0.0.0.0:8080-&gt;80/tcp   apacheBarno
c9bc486563bc        php:fpm             "php-fpm"                15 minutes ago      Up 15 minutes       9000/tcp               app_php
</code></pre>

<p>and I Started my apache with this command</p>

<pre><code>docker run --name apacheFoo --volumes-from app_php -p 8080:80 -v `pwd`:/var/www/html --rm nimmis/apache
</code></pre>

<p>When I visit <code>http://192.168.99.100:8080/</code>  ( im on mac ) I can see the apache page.</p>

<p>when I visit <code>http://192.168.99.100:8080/index.php</code> I get <code>&lt;?php echo "hello" ?&gt;</code></p>

<p>instead of "hello"</p>