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

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.