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
πŸ’¬ Discuss
βœ… Correct Answer: (C) Only the last is used
Explanation: Only the final `CMD` instruction is used in the image.
Explanation by: Mr. Dubey
Only the final `CMD` instruction is used in the image.

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
83
Total Visits
πŸ“½οΈ
1 y ago
Published
πŸŽ–οΈ
Mr. Dubey
Publisher
πŸ“ˆ
94%
Success Rate