A

Admin • 833.24K Points
Coach

Q. What is the difference between `CMD` and `ENTRYPOINT`?

  • (A) CMD is required; ENTRYPOINT is optional
  • (B) ENTRYPOINT allows arguments; CMD does not
  • (C) CMD provides defaults; ENTRYPOINT defines fixed commands
  • (D) They are interchangeable

Explanation by: Admin

`CMD` can be overridden, while `ENTRYPOINT` defines the main command that always runs.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.