Question about Command and Argument lab

Hi,

Why the answer is not “–color green --color red”?
Since the “command” under the yaml is “–color green” which will overwrite the “ENTRYPOINT” of Dockerfile, and append with the CMD value under the Dockerfile

Thank you

Hi @hlngai,

As you know the command of the POD will override the ENTRYPOINT of the Dockerfile.
The CMD is the argument of the command that specified in the ENTRYPOINT so when you override the actual command, It’s normal to ignore the arguments of that overridden command.

The correct answer is --color green