Q. What is the purpose of the ADD instruction in a Dockerfile?

  • (A) To copy files from the host to the container
  • (B) To copy files between containers
  • (C) To copy files from the container to the host
  • (D) To create a backup of the container
πŸ’¬ Discuss
βœ… Correct Answer: (A) To copy files from the host to the container
Explanation: The ADD instruction copies files or directories from the host into the container.
Explanation by: Gopal Sharma
The ADD instruction copies files or directories from the host into the container.

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
118
Total Visits
πŸ“½οΈ
2 y ago
Published
πŸŽ–οΈ
Gopal Sharma
Publisher
πŸ“ˆ
88%
Success Rate