Maybe Apache doesn't know when to use the php module? I found this apache cwiki
AddHandler application/x-httpd-php .php .phtml Action application/x-httpd-php modules/libphp5.so This how I started the container:
docker run --publish 9090:80 -v /tmp/project:/project kuborgh/php-5.2 /tmp/project is world read-, write- and searchable, the first index.php I put in there was executed succesfully when I visited http://localhost:9090/.
When I try, like you, to "docker run" with a docker id,
docker run --publish 9090:80 --name xxproject -v /var/docker_mounts/xxproject:/project e28e8b71a1f7 I get an error, saying the image e28e8b71a1f7 isn't to be found.
$ docker ps -a CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES bddc43202735 kuborgh/php-5.2 "/usr/sbin/apache2ct…" 18 hours ago Exited (137) 16 hours ago eager_ride $ docker run --publish 9090:80 --name AmehoelA -v /tmp/project:/project bddc43202735 Unable to find image 'bddc43202735:latest' locally docker: Error response from daemon: pull access denied for bddc43202735, repository does not exist or may require 'docker login': denied: requested access to the resource is denied.