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

Verified Answer
Correct Option - b

To get all Infosys Certified Docker and Kubernetes Practitioner Exam questions Join Group https://bit.ly/infy_premium_group

We're passionate about offering best placement materials and courses!! A one stop place for Placement Materials. We daily post Offcampus updates and Placement Materials.

Qtr No. 213, New Town Yehlanka Indore 454775

admin@prepflix.in