Dheera wants to map the current directory into /var/www/html, which is the document-root for apache
and wanted index.php to be served on http://localhost:8080. What is the command line to be executed for it?
docker run -d -p 80:80 -v ${PWD}:/var/www/html php:7.2-apache
docker run -d -p 8080:80 -v ${PWD}:/var/www/html php:7.2-apache
docker run -d -p 8080:8080 -v ${PWD}:/var/www/html php:7.2-apache
docker run -d -p 80:80 -v {PWD}/var/www/html apache
To get all Infosys Certified Docker and Kubernetes Practitioner Exam questions Join Telegram Group https://rebrand.ly/lex-telegram-236dee