πŸ“Š Docker
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
πŸ’¬ Discuss
βœ… Correct Answer: (C) CMD provides defaults; ENTRYPOINT defines fixed commands

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

Explanation by: Mr. Dubey
`CMD` can be overridden, while `ENTRYPOINT` defines the main command that always runs.

πŸ’¬ Discussion


πŸ“Š Question Analytics

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