Beginner
Docker & Containers
Q9 / 100
What is the difference between the Dockerfile "CMD" and "ENTRYPOINT" instructions, at a basic level?
Correct! Well done.
Incorrect.
The correct answer is B) CMD specifies the default command to run when a container starts, which can be overridden by arguments passed to "docker run"
B
Correct Answer
CMD specifies the default command to run when a container starts, which can be overridden by arguments passed to "docker run"
Explanation
CMD provides default arguments/command for the container that can be easily overridden, while ENTRYPOINT configures a command that is harder to override and CMD often supplies its default arguments.
Progress
9/100