CompTIA
XK0-006 · Question #97
XK0-006 Question #97: Real Exam Question with Answer & Explanation
The correct answer is B. ENTRYPOINT. This instruction defines the executable that is run when a container starts, ensuring the specified process is launched automatically each time a new container is created from the image.
Question
A Linux administrator needs to add an instruction into a Dockerfile so that the process /sbin/app-01 is executed when a new container starts. Which of the following accomplishes this task?
Options
- AFROM
- BENTRYPOINT
- CONBUILD
- DEXPOSE
Explanation
This instruction defines the executable that is run when a container starts, ensuring the specified process is launched automatically each time a new container is created from the image.
Community Discussion
No community discussion yet for this question.