πŸ“Š Docker
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
πŸ’¬ Discuss
βœ… Correct Answer: (C) `CMD` arguments are passed to `ENTRYPOINT`

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

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

πŸ’¬ Discussion


πŸ“Š Question Analytics

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