Q. What is the default command that Docker runs in a container if no command is specified?

  • (A) CMD
  • (B) ENTRYPOINT
  • (C) RUN
  • (D) BOTH CMD AND ENTRYPOINT
πŸ’¬ Discuss
βœ… Correct Answer: (A) CMD
Explanation: If no command is specified, Docker will use the default command specified in the Dockerfile as CMD.
Explanation by: Shiva Ram
If no command is specified, Docker will use the default command specified in the Dockerfile as CMD.

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
198
Total Visits
πŸ“½οΈ
2 y ago
Published
πŸŽ–οΈ
Shiva Ram
Publisher
πŸ“ˆ
92%
Success Rate