0 votes
in Docker by

What is the purpose of the CMD instruction in a Dockerfile?

A) To provide default arguments for the ENTRYPOINT command

B) To specify the base image for the Dockerfile

C) To specify the user that should run the container

D) To specify the working directory for the container

1 Answer

0 votes
by

Solution:A

Explanation: The CMD instruction in a Dockerfile is used to provide default arguments for the ENTRYPOINT commanD) It is often used to specify additional options or parameters for the primary process defined by the ENTRYPOINT instruction.

...