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.)
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.)
The statement in a Dockerfile that defines which command should be started in the container by default when it is started is CMD. The CMD instruction provides defaults for an executing container, including the command to be executed. If the CMD instruction is missing, the ENTRYPOINT instruction can be used, but typically CMD is used to specify the default command.
No, CMD this one is correct, read the Question again
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
The correct answer is: FROM
Dockerfile must begin with a `FROM` instruction.
ENTRYPOINT
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
entrypoint in theory is possible too, but usually is used to run executables, not commands, so cmd is better