New Year Sale ! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

LPI Exam 701-100 Topic 7 Question 59 Discussion

Actual exam question for LPI's 701-100 exam
Question #: 59
Topic #: 7
[All 701-100 Questions]

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: A

Contribute your Thoughts:

Essie
5 months ago
Yeah, combining both statements gives more flexibility in defining the default behavior of the container.
upvoted 0 times
...
Ardella
5 months ago
I always make sure to use both CMD and ENTRYPOINT to set up my containers properly.
upvoted 0 times
...
Essie
5 months ago
That's true, ENTRYPOINT can work together with CMD to define the default command.
upvoted 0 times
...
Katlyn
5 months ago
But don't forget about ENTRYPOINT statement, it also plays a role in defining the default command.
upvoted 0 times
...
Ardella
5 months ago
I agree, CMD is used to specify the default command to run in the container.
upvoted 0 times
...
Essie
5 months ago
I think the statement in a Dockerfile that defines the default command is called CMD.
upvoted 0 times
...
Mayra
6 months ago
Actually, it's CMD. ENTRYPOINT specifies the executable, but CMD specifies the default command.
upvoted 0 times
...
Dalene
6 months ago
I think it's ENTRYPOINT because it specifies the executable to be run.
upvoted 0 times
...
Mayra
6 months ago
CMD
upvoted 0 times
...
Belen
6 months ago
No, it's CMD. It specifies the default command to run when the container starts.
upvoted 0 times
...
Linette
6 months ago
ENTRYPOINT
upvoted 0 times
...
Belen
7 months ago
CMD
upvoted 0 times
...

Save Cancel
az-700  pass4success  az-104  200-301  200-201  cissp  350-401  350-201  350-501  350-601  350-801  350-901  az-720  az-305  pl-300  

Warning: Cannot modify header information - headers already sent by (output started at /pass.php:70) in /pass.php on line 77