XK0-005 · Question #895
A Linux administrator needs to rebuild a container with httpd service in order to change some default parameters. Which of the following should be the first command line in the Dockerfile?
The correct answer is A. FROM httpd. In a Dockerfile, the FROM instruction defines the base image - in this case, httpd - from which the container will be built. It must be the first command in the Dockerfile. Exam Code: XK0-005 Exam Name: CompTIA Linux+ XK0-005 Certification Exam
Question
A Linux administrator needs to rebuild a container with httpd service in order to change some default parameters. Which of the following should be the first command line in the Dockerfile?
Options
- AFROM httpd
- BBASE httpd
- CUSE httpd
- DINHERIT httpd
How the community answered
(16 responses)- A88% (14)
- B6% (1)
- C6% (1)
Explanation
In a Dockerfile, the FROM instruction defines the base image - in this case, httpd - from which the container will be built. It must be the first command in the Dockerfile. Exam Code: XK0-005 Exam Name: CompTIA Linux+ XK0-005 Certification Exam
Topics
Community Discussion
No community discussion yet for this question.