CompTIA Linux+ (XK0-005) — Question 293
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?
Answer options
- A. FROM httpd
- B. BASE httpd
- C. USE httpd
- D. INHERIT httpd
Correct answer: A
Explanation
The correct command is 'FROM httpd', which specifies the base image for the Dockerfile. The other options like 'BASE', 'USE', and 'INHERIT' are not valid Docker commands and will not function in a Dockerfile.