A

Admin • 802.91K Points
Coach

Q. What happens if both `CMD` and `ENTRYPOINT` are defined?

  • (A) `CMD` is ignored
  • (B) `ENTRYPOINT` runs first
  • (C) `CMD` arguments are passed to `ENTRYPOINT`
  • (D) `CMD` and `ENTRYPOINT` conflict

Explanation by: Admin
If both are defined, `CMD` provides arguments to `ENTRYPOINT` unless CMD is overridden.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.