Docker – Installation Stpes Apache 2 with php.
$ docker pull cloudsenthil/apache-php
$ docker run -d -p 80:80 apache-php
$ docker ps ( Verify the running containers)
Check your web browser or curl :-
$ curl http://localhost
Local Directory mount to the Container Image :-
First Create the folder Local machine ex: /home/senthil/public_html
We are running the web application path folder /app
$ docker run -d -p 80:80 -v /home/senthil/public_html:/app apache-php
Local directory mounted to the apache-php container
Content type
Image
Digest
sha256:bce2814df…
Size
-
Last updated
over 11 years ago
docker pull cloudsenthil/apache-php