A

Admin • 832.27K Points
Coach

Q. What happens if multiple `CMD` instructions are in a Dockerfile?

  • (A) All are executed
  • (B) Only the first is used
  • (C) Only the last is used
  • (D) They are ignored

Explanation by: Admin

Only the final `CMD` instruction is used in the image.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.