In Docker, a Dockerfile is a script that contains instructions to build a container image. The first line in a Dockerfile is typically the FROM directive, which specifies the base image from which the container will be built.
The correct syntax for specifying a base image is:rubyFROM :If no tag is provided, Docker will pull the latest version of the specified image by default.
The correct syntax for specifying a base image is:rubyFROM :If no tag is provided, Docker will pull the latest version of the specified image by default.
The correct syntax for specifying a base image is:rubyFROM :If no tag is provided, Docker will pull the latest version of the specified image by default.
The correct syntax for specifying a base image is:rubyFROM :If no tag is provided, Docker will pull the latest version of the specified image by default.
The correct syntax for specifying a base image is:rubyFROM :If no tag is provided, Docker will pull the latest version of the specified image by default.
httpd is the official Apache HTTP Server image available in Docker Hub.
The incorrect options:
BASE httpd → Incorrect, as there is no such directive in Dockerfile syntax.
USE httpd → Incorrect, this is not a valid Docker command.
INHERIT httpd → Incorrect, as Docker does not use INHERIT to specify base images.
Thus, the correct answer is A. FROM httpd.
[References:, CompTIA Linux+ Official Documentation, Dockerfile Reference - Docker Docs, Official httpd Docker Image, , ]