πŸ“Š Docker
Q. What is the purpose of the COPY 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 COPY instruction copies files or directories from the host machine into the Docker image.

Explanation by: Gopal Sharma
The COPY instruction copies files or directories from the host machine into the Docker image.

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
203
Total Visits
πŸ“½οΈ
12 mo ago
Published
πŸŽ–οΈ
Gopal Sharma
Publisher
πŸ“ˆ
97%
Success Rate