nerdexam
CompTIA

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

Scripting, Containers, and Automation

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)
  • A
    88% (14)
  • B
    6% (1)
  • C
    6% (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

#Dockerfile#Docker#Containers

Community Discussion

No community discussion yet for this question.

Full XK0-005 Practice