
Docker Dockerfile and Docker Compose 2020 Ready - Build your own Images with Custom Configuration using Docker-Compose
Interactive Video
•
Information Technology (IT), Architecture
•
University
•
Practice Problem
•
Hard
Wayground Content
FREE Resource
Read more
7 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the main reason for modifying Docker images in PHP projects?
To improve security
To reduce image size
To enable additional PHP extensions
To change the PHP version
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which PHP extension is used in the example provided in the lecture?
PDO
GD
MySQL
Curl
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What command is used to build and run a Docker container in the example?
docker-compose up
docker start
docker build
docker run
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How can you verify if a PHP extension is activated in the container?
Check the Dockerfile
Run phpinfo() in the browser
Inspect the Docker image
Use the docker logs command
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What command is used to install the MySQL extension in the Dockerfile?
docker-php-ext-install mysqli
php install mysql
composer require mysql
apt-get install mysql
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What should you do after modifying the Dockerfile to ensure changes take effect?
Update the Docker version
Restart the Docker service
Rebuild the Docker image
Clear the Docker cache
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the next topic mentioned for the upcoming lecture?
Using Docker with Node.js
Docker security best practices
Advanced PHP configurations
Building a multi-service environment
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?