Q. How do you override a CMD at runtime?

  • (A) Using docker override
  • (B) By editing the image
  • (C) By providing a command in `docker run`
  • (D) You cannot override CMD
πŸ’¬ Discuss
βœ… Correct Answer: (C) By providing a command in `docker run`
Explanation: You can override CMD by passing a command after the image name in `docker run`.
Explanation by: Mr. Dubey
You can override CMD by passing a command after the image name in `docker run`.

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
59
Total Visits
πŸ“½οΈ
12 mo ago
Published
πŸŽ–οΈ
Mr. Dubey
Publisher
πŸ“ˆ
87%
Success Rate