Q. Which command is used to build a Docker image from a Dockerfile?

  • (A) docker create
  • (B) docker build
  • (C) docker run
  • (D) docker compose
πŸ’¬ Discuss
βœ… Correct Answer: (B) docker build
Explanation: The 'docker build' command is used to build a Docker image from a Dockerfile and a context (usually the current directory).
Explanation by: Priyanka Tomar
The 'docker build' command is used to build a Docker image from a Dockerfile and a context (usually the current directory).

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
106
Total Visits
πŸ“½οΈ
1 y ago
Published
πŸŽ–οΈ
Priyanka Tomar
Publisher
πŸ“ˆ
91%
Success Rate