CompTIA
XK0-006 · Question #97
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?
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.
Automation, Orchestration, and Scripting
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
How the community answered
(22 responses)- A5% (1)
- B91% (20)
- C5% (1)
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.
Topics
#Dockerfile#ENTRYPOINT#container startup#Docker
Community Discussion
No community discussion yet for this question.