exam questions

Exam 701-100 All Questions

View all questions & answers for the 701-100 exam

Exam 701-100 topic 1 question 32 discussion

Actual exam question from LPI's 701-100
Question #: 32
Topic #: 1
[All 701-100 Questions]

FILL BLANK -
Which statement in a Dockerfile defines which command should be started in the container by default when it is started? (Specify ONLY the statement's name without any values or parameters.)

Show Suggested Answer Hide Answer
Suggested Answer: CMD

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
mucmike
Highly Voted 2 years, 7 months ago
No, CMD this one is correct, read the Question again
upvoted 5 times
...
ignasi
Most Recent 2 months, 3 weeks ago
entrypoint in theory is possible too, but usually is used to run executables, not commands, so cmd is better
upvoted 1 times
...
gilbertlelancelo
1 year, 5 months ago
Ans us CMD. The main purpose of a CMD is to provide defaults for an executing container. These defaults can include an executable, or they can omit the executable, in which case you must specify an ENTRYPOINT instruction as well. https://docs.docker.com/engine/reference/builder/#cmd
upvoted 1 times
...
jsdnhk
2 years, 6 months ago
CMD Highlighted that, "The main purpose of a CMD is to provide defaults for an executing container." from https://docs.docker.com/engine/reference/builder/#cmd
upvoted 2 times
...
mri
2 years, 6 months ago
ENTRYPOINT
upvoted 1 times
...
melyess
2 years, 10 months ago
Dockerfile must begin with a `FROM` instruction.
upvoted 1 times
...
hector1978
2 years, 11 months ago
The correct answer is: FROM
upvoted 1 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago